Start of some code.
This commit is contained in:
parent
62f10f66d6
commit
8b8e396710
1
bots/ignore.md
Normal file
1
bots/ignore.md
Normal file
@ -0,0 +1 @@
|
||||
Left empty on purpose.
|
1
game/ignore.md
Normal file
1
game/ignore.md
Normal file
@ -0,0 +1 @@
|
||||
Left empty on purpose.
|
3
go.mod
Normal file
3
go.mod
Normal file
@ -0,0 +1,3 @@
|
||||
module gitea.ligthert.net/golang/rowboz
|
||||
|
||||
go 1.21.4
|
13
main.go
Normal file
13
main.go
Normal file
@ -0,0 +1,13 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"gitea.ligthert.net/golang/rowboz/types"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var pos Position
|
||||
pos.x = 5
|
||||
pos.y = 5
|
||||
fmt.Println("Hello World")
|
||||
}
|
6
types/position.go
Normal file
6
types/position.go
Normal file
@ -0,0 +1,6 @@
|
||||
package types
|
||||
|
||||
type Position struct {
|
||||
x int
|
||||
y int
|
||||
}
|
5
types/robots.go
Normal file
5
types/robots.go
Normal file
@ -0,0 +1,5 @@
|
||||
package types
|
||||
|
||||
type Robot struct {
|
||||
position Position
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user