Skip to content

Instantly share code, notes, and snippets.

@john-nash-rs
Created May 2, 2020 18:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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