Skip to content

Instantly share code, notes, and snippets.

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