See also, http://libraryofalexandria.io/cgo/
cgo has a lot of trap.
but Not "C" pkg also directory in $GOROOT/src. IDE's(vim) Goto command not works.
So, Here collect materials.
| <?php | |
| /** | |
| * Redis分布锁实现 | |
| * @author pengmeng | |
| * 实例: | |
| * 初始化并配置锁 | |
| * $redis是连接redis之后的redis对象. | |
| * $lock = new RedisLock($redis); | |
| * $lock->setKeyPrefix('testLock:')->setRxpire(15); |
| From Android terminal: | |
| am start -n ru.meefik.linuxdeploy/.MainActivity | |
| or from inside Linux container: | |
| unchroot su -c "am start -n ru.meefik.linuxdeploy/.MainActivity" | |
| and unckeck this option. |
| ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime |
See also, http://libraryofalexandria.io/cgo/
cgo has a lot of trap.
but Not "C" pkg also directory in $GOROOT/src. IDE's(vim) Goto command not works.
So, Here collect materials.
| https://github.com/devlinkcn |
| 0rz.tw | |
| 0to255.com | |
| 0zz0.com | |
| 1-apple.com.tw | |
| 1000dosok.ru | |
| 1000giri.net | |
| 1024.inc.gs | |
| 10conditionsoflove.com | |
| 10musume.com | |
| 10youtube.com |
| #!/bin/bash | |
| #write by zhumaohai(admin#centos.bz) | |
| #author blog: www.centos.bz | |
| #显示菜单(单选) | |
| display_menu(){ | |
| local soft=$1 | |
| local prompt="which ${soft} you'd select: " |
| package main | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "flag" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "os" |
| This demonstrates how to make client side certificates with go | |
| First generate the certificates with | |
| ./makecert.sh test@test.com | |
| Run the server in one terminal | |
| go run server.go |
| package main | |
| import "reflect" | |
| import "fmt" | |
| type User struct { | |
| Name string | |
| } | |
| func main() { |