mirror of https://github.com/01-edu/public.git
39e8eb3ccf | ||
---|---|---|
.. | ||
README.md |
README.md
pilot
Instructions
- Create a directory called
pilot
. - Inside the directory
pilot
create a filemain.go
. - Copy the code below to
main.go
and add the code needed so that the program compiles.
Note: You can only add code, not delete.
Usage
package main
import "fmt"
func main() {
var donnie Pilot
donnie.Name = "Donnie"
donnie.Life = 100.0
donnie.Age = 24
donnie.Aircraft = AIRCRAFT1
fmt.Println(donnie)
}
const AIRCRAFT1 = 1