29. Go - Types Declaring
Declaring a type:
type variableNameAge int
type variableNamePerson struct {}
type variableNameDecimal float64
type variableNameName string
type variableNameBig bool
var toddAge variableNameAge = 50
var toddName variableNameName = "todd"
Comments
Post a Comment