github.com/EngineerKamesh/gofullstack@v0.0.0-20180609171605-d41341d7d4ee/volume1/section3/smpostexample/smpostexample.go (about) 1 // An example of creating a new instance of a Social Media Post type. 2 package main 3 4 import ( 5 "fmt" 6 7 "github.com/EngineerKamesh/gofullstack/volume1/section3/socialmedia" 8 ) 9 10 func main() { 11 12 myPost := socialmedia.NewPost("EngineerKamesh", socialmedia.Moods["thrilled"], "Go is awesome!", "Check out the Go web site!", "https://golang.org", "", "", []string{"go", "golang", "programming language"}) 13 fmt.Printf("myPost: %+v\n", myPost) 14 }