initialize go program

This commit is contained in:
NunoSempere 2024-02-16 00:19:09 +01:00
parent 1903a09e97
commit 5a36bec0ba
4 changed files with 22 additions and 0 deletions

7
go/hello.go Normal file
View File

@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("Hello world!")
}

2
go/makefile Normal file
View File

@ -0,0 +1,2 @@
run:
go run hello.go

3
go/notes.md Normal file
View File

@ -0,0 +1,3 @@
- [ ] Hello world program
- [ ] Look into randomness sources in go
- [ ]

10
go/squiggle.go Normal file
View File

@ -0,0 +1,10 @@
package main
import "fmt"
import rand "math/rand/v2"
func main() {
r := rand.New(rand.NewPCG(1, 2))
fmt.Println("Hello world!")
fmt.Printf("%v\n", r.Float64())
}