This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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