Go
import "github.com/snluu/uuid"
func (this *AccountController) CreateSession(uid int64) {
sig := uuid.R...
imekaku
4年前 (2017-04-10) 2885℃ 0评论
1喜欢
用于提交,参考链接:http://www.01happy.com/golang-http-client-get-and-post/
Get 方法
Go
func httpGet() {
resp, err := ht...
admin
4年前 (2016-12-14) 1455℃ 0评论
0喜欢
Go
package main
import (
"fmt"
"io/ioutil"
"net/http"
"os"
"regexp"
"runtime"
"strconv"
"sy...
admin
4年前 (2016-12-06) 1745℃ 0评论
0喜欢
Example
Go
package main
import (
"log"
"sync"
"time"
)
func main() {
var wg sync.WaitGroup
wg...
imekaku
4年前 (2016-11-30) 1473℃ 0评论
0喜欢
Golang 获取简单参数
Go
package main
import (
"flag"
"fmt"
)
func main() {
flag.Parse()
for _, param :...
imekaku
4年前 (2016-11-30) 1066℃ 0评论
0喜欢
目前需求:需要发现文件夹中有添加新日志,并输出起文件名。Github-项目地址
Example
Go
package main
import (
"log"
"fmt"
"github.com/howe...
imekaku
4年前 (2016-11-21) 1696℃ 0评论
0喜欢
使用sync
Go
package main
import (
"fmt"
"runtime"
"sync"
)
func main() {
...
admin
4年前 (2016-11-03) 1110℃ 0评论
0喜欢
json文件
Shell
{
"filepath":"/home/lee/applications/go/src/github.com/wd-project/src/github.com/conf/conf/f...
admin
4年前 (2016-11-02) 1077℃ 0评论
0喜欢
处理文本文件模板,然后输出到文件
text/template
Go
package main
import (
"fmt"
"bytes"
"text/templ...
admin
4年前 (2016-11-01) 1088℃ 0评论
0喜欢
常用的正则表达式
Go
package main
import (
"fmt"
"regexp"
)
func main() {
match, _ := regexp.Matc...
admin
4年前 (2016-10-25) 1862℃ 0评论
0喜欢