https://github.com/gavv/httpexpect
https://github.com/joohoi/acme-dns
https://github.com/aubm/postmanerator
| func split(buf []byte, lim int) [][]byte { | |
| var chunk []byte | |
| chunks := make([][]byte, 0, len(buf)/lim+1) | |
| for len(buf) >= lim { | |
| chunk, buf = buf[:lim], buf[lim:] | |
| chunks = append(chunks, chunk) | |
| } | |
| if len(buf) > 0 { | |
| chunks = append(chunks, buf[:len(buf)]) | |
| } |
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| ) | |
| type Repo interface { | |
| GetOne() string | |
| } |
| license: mit |