gomobile

1-18 1,102 views

Gomobile 环境搭建 安装 golang、Android Studio、Sdk、Ndk export GOROOT=/usr/local/go export GOPATH=$HOME/Documents/go export ANDROID_SDK=$HOME/Li...
阅读全文 0

socket.io

1-05 1,658 views

socket.io Javascript https://socket.io javascript 不支持binnary,即使可以Emit uint8array,但最终会转换成json格式,导致golang接受后不响应消息 gola...
阅读全文 0

Golang通过GOTRACEBACK生成程序崩溃后core文件的方法

12-16 1,216 views

http://blog.sina.com.cn/s/blog_48c95a190102w2nu.html
阅读全文 0

Golang1.7 Http和Tcp使用同一个端口做服务

12-13 962 views

先看一下标准库中http server的实现 type tcpKeepAliveListener struct { *net.TCPListener } func (ln tcpKeepAliveListener) Accept() (c net.Conn, ...
阅读全文 0

Go插件系统

11-14 757 views

https://mp.weixin.qq.com/s/XB2zGG5bD3MFe6nRcRdG5w
阅读全文 0

golang test

5-02 2,119 views

文件命名格式为 xxx_test.go 如 object_test.go package test import ( "fmt" "testing" ) func TestObject(t *testing.T) { fmt.Println("he...
阅读全文 0

Sharing Golang packages to C and Go

12-06 850 views

http://blog.ralch.com/tutorial/golang-sharing-libraries/
阅读全文 0

golang json date format

11-23 1,105 views

type CustomTime struct { time.Time } const ctLayout = "2006/01/02|15:04:05" func (ct *CustomTime) UnmarshalJSON(b []byte) (err error) { ...
阅读全文 0

CGo

11-14 1,621 views

Typecast char --> C.char --> byte signed char --> C.schar --> int8 unsigned char --> C.uchar --> uint8 short int --> C...
阅读全文 6

golang 交叉编译

11-02 821 views

http://dave.cheney.net/2012/09/08/an-introduction-to-cross-compilation-with-go
阅读全文 0