上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页
摘要: import Queue class Publish: def removeOldTar(self): cmd='ls ' + self.oss_root_dir + " | awk '{print $5}'" self.debug(cmd) rs=commands.getoutput(cmd) arrList=rs.sp... 阅读全文
posted @ 2016-10-14 17:57 hao.ma 阅读(158) 评论(0) 推荐(0)
摘要: package main import ( "fmt" "time" ... 阅读全文
posted @ 2016-09-02 15:59 hao.ma 阅读(2849) 评论(0) 推荐(0)
摘要: import ( "unicode" ) func UcFirst(str string) string { for i, v := range str { return string(unicode.ToUpper(v)) + str[i+1:] } return "" } func LcFirst(str string) string... 阅读全文
posted @ 2016-08-29 20:11 hao.ma 阅读(7089) 评论(0) 推荐(0)
摘要: import "fmt"最常用的一种形式 import "./test"导入同一目录下test包中的内容 import f "fmt"导入fmt,并给他启别名f import . "fmt",将fmt启用别名".",这样就可以直接使用其内容,而不用再添加fmt,如fmt.Println可以直接写成Println import _ "fmt" 表示不使用该包,而是只是使用该包的init函... 阅读全文
posted @ 2016-08-24 15:53 hao.ma 阅读(143) 评论(0) 推荐(0)
摘要: 参考:https://github.com/astaxie/build-web-application-with-golang/blob/master/zh/07.2.md 阅读全文
posted @ 2016-08-24 14:47 hao.ma 阅读(228) 评论(0) 推荐(0)
摘要: 1) cgo https://github.com/golang/go/issues/9520 阅读全文
posted @ 2016-08-19 12:34 hao.ma 阅读(352) 评论(0) 推荐(0)
摘要: package models import ( "crypto/hmac" "crypto/sha1" "encoding/base64" "net/url" ... 阅读全文
posted @ 2016-08-15 17:35 hao.ma 阅读(706) 评论(0) 推荐(0)
摘要: package models import ( "bytes" "crypto/aes" "crypto/cipher" "errors" ... 阅读全文
posted @ 2016-08-11 22:02 hao.ma 阅读(512) 评论(0) 推荐(0)
摘要: package models import ( "crypto/ran... 阅读全文
posted @ 2016-08-11 22:01 hao.ma 阅读(426) 评论(0) 推荐(0)
摘要: nginx 配置如下: 说明: nginx拿到请求后会根据$host 去匹配server_name 如果匹配上继续走匹配的vs 如果没有匹配上走 default_server逻辑 如上default_server 404 满足需求 阅读全文
posted @ 2016-08-11 15:56 hao.ma 阅读(9555) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页