Skip to content

Instantly share code, notes, and snippets.

@john-nash-rs
Created May 2, 2020 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save john-nash-rs/6bd93a6b4a344fc0abd7ddb869d1c682 to your computer and use it in GitHub Desktop.
Save john-nash-rs/6bd93a6b4a344fc0abd7ddb869d1c682 to your computer and use it in GitHub Desktop.
package main
import "fmt"
type Student struct {
Name string
Address string
Class string
}
func main() {
s := Student{"ABC", "XYZ", "X"}
fmt.Printf("%s lives in %s and studies in %s",s.Name, s.Address, s.Class)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment