initialize go program
This commit is contained in:
parent
1903a09e97
commit
5a36bec0ba
7
go/hello.go
Normal file
7
go/hello.go
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
fmt.Println("Hello world!")
|
||||||
|
}
|
2
go/makefile
Normal file
2
go/makefile
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
run:
|
||||||
|
go run hello.go
|
3
go/notes.md
Normal file
3
go/notes.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
- [ ] Hello world program
|
||||||
|
- [ ] Look into randomness sources in go
|
||||||
|
- [ ]
|
10
go/squiggle.go
Normal file
10
go/squiggle.go
Normal 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())
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user