Let’s look at our first Go program on pcDuino.
The hello word code is as following:
- package main
- import "fmt"
- func main() {
- fmt.Printf("hello, world\n")
- }
Copy paste and save the code to a file named “hello.go”.Run the code by typing:
- $go run hello.go
