script:
- diff <(echo -n) <(gofmt -s -d .)
- ineffassign .
- - go vet ./...
+ - go vet $(go list ./... | grep -v /vendor/)
- go test $(go list ./... | grep -v /vendor/)
after_script:
palette := readableColors256()
Themes = []Theme{
- Theme{
+ {
id: "colors",
names: palette,
sys: palette.Get(8), // Grey
pm: palette.Get(7), // White
highlight: style(Bold + "\033[48;5;11m\033[38;5;16m"), // Yellow highlight
},
- Theme{
+ {
id: "mono",
},
}
}
func (h *Host) completeCommand(partial string) string {
- for cmd, _ := range h.commands {
+ for cmd := range h.commands {
if strings.HasPrefix(cmd, partial) {
return cmd
}
}
func parseWinchRequest(s []byte) (width, height int, ok bool) {
- width32, s, ok := parseUint32(s)
+ width32, _, ok := parseUint32(s)
if !ok {
return
}
- height32, s, ok := parseUint32(s)
+ height32, _, ok := parseUint32(s)
if !ok {
return
}