06 2017 档案
摘要:Golang slice yongsean 作者 2017.02.17 00:07 打开App 创建切片,len、cap、append b := make([]int, 5) println(len(b), cap(b)) // 输出结果是:5, 5 fmt.Println(b) // 输出结果是:
阅读全文
摘要:原文: https://www.fknsrs.biz/blog/otto-getting-started.html.html GETTING STARTED WITH THE OTTO JAVASCRIPT INTERPRETER May 2, 2016 6 minutes read GETTING
阅读全文
摘要:原文: How to multiply duration by integer? 看到golang项目中的一段代码, You have to cast it to a correct format Playground. If you will check documentation for sle
阅读全文
摘要:旋转3d 相册 3d透视 实时水平垂直居中!!! transform-style: peserve-3d ul li {width:200px ; height:200px; background: rgba(255,121, 253, 0.5); position:absolute; left:0
阅读全文
摘要:原文: http://blog.csdn.net/taohaoge/article/details/27970421 大白话: 上面的图片是参考的排队进站的情境,没找到合适的图片,只好自己画了个线条图。 其中A,B是两个不同的检票窗口,两队的人可以在同一时间进行检票,这属于并行。其中一个检票口可以理
阅读全文
摘要:原文: http://blog.csdn.net/netdxy/article/details/54564436 在用 chan 类型时,发生死锁的错误,表面上看不出什么问题 首先我们来看线程,在golang里面也叫goroutine 在读这篇文章之前,我们需要了解一下并发与并行。golang的线程
阅读全文
摘要:https://mmcgrana.github.io/2012/09/go-by-example-timers-and-tickers.html Timers and Tickers September 28 2012 If you’re interested in Go, be sure to c
阅读全文
摘要:go语言中用mutex实现状态同步。 原文: https://kylewbanks.com/blog/tutorial-synchronizing-state-with-mutexes-golang The Mutex (mutual exclusion lock) is an invaluable
阅读全文
摘要:原文: https://tutorialedge.net/post/golang/creating-simple-web-server-with-golang/ In this tutorial we’ll be focusing on creating a very simple web serv
阅读全文
摘要:原文:http://studygolang.com/articles/4356 在Golang里,import的作用是导入其他package,但是今天在看beego框架时看到了import 下划线,不知其意,故百度而解之。 import 下划线(如:import _ hello/imp)的作用:当导
阅读全文
摘要:SQL.Open only creates the DB object, but dies not open any connections to the database. If you want to test your connections you have to execute a que
阅读全文
摘要:Go Cross Compilation from Windows to Linux/Ubuntu I have GO 1.7 installed on my Windows 10. I created test program and it works perfectly in Windows.
阅读全文
摘要:There is no float type. Looks like you want float64. You could also use float32 if you only need a single-precision floating point value.
阅读全文
摘要:这篇文章讲的不错, angular $q 和 promise!! 通过调用 $q.defer() 可以构建一个新的 deffered 实例。deffered 对象用来将 Promise 实例与 标记任务状态(执行成功还是不成功)的 API 相关联。 deffered 对象的方法 resolve(va
阅读全文
摘要:golange 开启http server 服务之后,怎么关闭呢? 这个也不错: http://blog.csdn.net/codyguo/article/details/54582453
阅读全文
摘要:Modbus协议是OSI模型的第七层的应用层通讯协议,定义了不同类型设备间交换信息方式,以及信息的格式。 Modbus的工作方式是请求/应答,每次通讯都是主站先发送指令,可以是广播,或是向特定从站的单播,从站响应指令,并按要求应答,或者报告异常。当主站不发送请求时,从站不会自己发出数据,从站和从站之
阅读全文
摘要:其实就是网卡,适配器其实就是“卡”,显卡也就是显示适配器,而屏幕是监视器,适配器是比较专业的词,意思就是使其可连接配置,网络适配器就是将主板的网卡接口与网线的接口相连接,并使其数据可以互相匹配,网卡在中间可以理解成这两个接口的转换装置 数据在网线中传输的载体是电信号,具体呈现形式为电压波形。发送端网
阅读全文
摘要:相信很多人都会像小编一样傻乎乎的认为这两个都是用来上网的,至于这俩家伙是基友还是情侣,有什么区别的,就不清楚是怎么回事了。交换机和路由器的区别到底在哪里呢?本着科普和学习的精神,小编整理一些内容和大家分享。 交换机和路由器的区别之一 路由器可以给你的局域网自动分配IP,虚拟拨号,就像一个交通警察,指
阅读全文
摘要:PLC编程入门基础技术知识学习 2016-06-27 xjp7879 摘自 电工技术知... 2016-06-27 xjp7879 摘自 电工技术知... 第一章 可编程控制器简介 可编程序控制器,英文称Programmable Controller,简称PC。但由于PC容易和个人计算机(Perso
阅读全文
摘要:Javascript Data Type How to - Add days to current date Back to Date ↑ Question We would like to know how to add days to current date. Answer The code
阅读全文
摘要:http://www.exploringbinary.com/base-conversion-in-php-using-built-in-functions/ http://www.binaryconvert.com/convert_float.html?decimal=05404605605004
阅读全文