You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
273 B

package main
5 years ago
import "fmt"
5 years ago
type Pilot struct {
Name string
Life float32
Age int
Aircraft int
}
5 years ago
const Aircraft1 = 1
5 years ago
func main() {
donnie := Pilot{
Name: "Donnie",
Life: 100.0,
Age: 24,
Aircraft: Aircraft1,
}
fmt.Println(donnie)
}