server, examples, extensions lint compliant (#1109)

these are all automated changes suggested by golint
This commit is contained in:
Reed Allman
2018-07-04 09:23:15 -05:00
committed by Owen Cliffe
parent 6f5e58144a
commit 1cdb47d6e9
30 changed files with 355 additions and 223 deletions

View File

@@ -7,12 +7,12 @@ import (
"os"
)
type Person struct {
type person struct {
Name string
}
func main() {
p := &Person{Name: "World"}
p := &person{Name: "World"}
json.NewDecoder(os.Stdin).Decode(p)
mapD := map[string]string{"message": fmt.Sprintf("Hello %s", p.Name)}
mapB, _ := json.Marshal(mapD)

View File

@@ -7,12 +7,12 @@ import (
"github.com/sirupsen/logrus"
)
type Person struct {
type person struct {
Name string
}
func main() {
p := &Person{Name: "World"}
p := &person{Name: "World"}
json.NewDecoder(os.Stdin).Decode(p)
logrus.Printf("Hello %v!\n", p.Name)