09 2014 档案
摘要:package mainimport ( "fmt" "reflect")type YourT1 struct {}func (y *YourT1) MethodBar() { fmt.Println("MethodBar called")}type YourT2 struct {...
阅读全文
摘要:写法有点怪异,记一下吧_, implemented := this.delegate.(IGenTcpServerDelegate)if implemented { this.delegate.GenTcpServerClientConnected(this.getClientInfoMap(...
阅读全文
摘要:supervisor是把普通app变成deamon的工具,虽然没有erlang的supervise粒度那么细,但是已经非常方便了 安装 修改配置文件 添加下面的以支持web管理 新建单独的配置 supervisor的命令 如果启动的时候报错 解决办法
阅读全文
摘要:摘自https://github.com/beego/tutorial/blob/master/zh/3/params.slide* beego的默认参数- AppName 应用名称,默认是 beego。通过bee new创建的是创建的项目名。- AppPath 当前应用的路径,默认会通...
阅读全文
摘要:抄自http://beyondvincent.com/blog/2014/03/17/five-tips-for-using-self-signed-ssl-certificates-with-ios/ios7以后,inhouse安装需要ssl了,一般用商用的,不想用商用的,就自己弄一个,通过ope...
阅读全文
摘要:先生成ssl证书openssl genrsa -out key.pem 2048openssl req -new -x509 -key key.pem -out cert.pem -days 1095然后,大概这样package mainimport ( "log" "net/http"...
阅读全文