mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
25 lines
482 B
Go
25 lines
482 B
Go
package main
|
|
|
|
import (
|
|
"encoding/json"
|
|
"os"
|
|
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
type Person struct {
|
|
Name string
|
|
}
|
|
|
|
func main() {
|
|
p := &Person{Name: "World"}
|
|
json.NewDecoder(os.Stdin).Decode(p)
|
|
logrus.Printf("Hello %v!\n", p.Name)
|
|
|
|
logrus.Println("---> stderr goes to the server logs.")
|
|
logrus.Println("---> LINE 2")
|
|
logrus.Println("---> LINE 3 with a break right here\nand LINE 4")
|
|
logrus.Println("---> LINE 5 with a double line break\n ")
|
|
logrus.Println("---> LINE 6")
|
|
}
|