mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
server, examples, extensions lint compliant (#1109)
these are all automated changes suggested by golint
This commit is contained in:
@@ -6,12 +6,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),
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"os"
|
||||
)
|
||||
|
||||
type Link struct {
|
||||
type link struct {
|
||||
Text string
|
||||
Href string
|
||||
}
|
||||
@@ -42,14 +42,14 @@ func main() {
|
||||
data := struct {
|
||||
Title string
|
||||
Body string
|
||||
Items []Link
|
||||
Items []link
|
||||
}{
|
||||
Title: "My App",
|
||||
Body: "This is my app. It may not be the best app, but it's my app. And it's multilingual!",
|
||||
Items: []Link{
|
||||
Link{"Ruby", fmt.Sprintf("/r/%s/ruby", appName)},
|
||||
Link{"Node", fmt.Sprintf("/r/%s/node", appName)},
|
||||
Link{"Python", fmt.Sprintf("/r/%s/python", appName)},
|
||||
Items: []link{
|
||||
link{"Ruby", fmt.Sprintf("/r/%s/ruby", appName)},
|
||||
link{"Node", fmt.Sprintf("/r/%s/node", appName)},
|
||||
link{"Python", fmt.Sprintf("/r/%s/python", appName)},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user