feat: some testing code lol
This commit is contained in:
parent
5dd1cc25e9
commit
1ef0757412
5 changed files with 19 additions and 28 deletions
9
go.mod
9
go.mod
|
@ -1,10 +1,3 @@
|
|||
module test/hello
|
||||
module gitlab.com/stvnliu/ai_game
|
||||
|
||||
go 1.23.2
|
||||
|
||||
require rsc.io/quote v1.5.2
|
||||
|
||||
require (
|
||||
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c // indirect
|
||||
rsc.io/sampler v1.3.0 // indirect
|
||||
)
|
||||
|
|
6
go.sum
6
go.sum
|
@ -1,6 +0,0 @@
|
|||
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c h1:qgOY6WgZOaTkIIMiVjBQcw93ERBE4m30iBm00nkL0i8=
|
||||
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
rsc.io/quote v1.5.2 h1:w5fcysjrx7yqtD/aO+QwRjYZOKnaM9Uh2b40tElTs3Y=
|
||||
rsc.io/quote v1.5.2/go.mod h1:LzX7hefJvL54yjefDEDHNONDjII0t9xZLPXsUe+TKr0=
|
||||
rsc.io/sampler v1.3.0 h1:7uVkIFmeBqHfdjD+gZwtXXI+RODJ2Wc4O7MPEh/QiW4=
|
||||
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
|
14
hello.go
14
hello.go
|
@ -1,14 +0,0 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
import "rsc.io/quote"
|
||||
|
||||
func greet(name string) string {
|
||||
msg := fmt.Sprintf("Good day to you, %v!", name)
|
||||
return msg
|
||||
}
|
||||
|
||||
func main() {
|
||||
greet("Steven")
|
||||
fmt.Println(quote.Glass())
|
||||
}
|
10
main.go
Normal file
10
main.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"gitlab.com/stvnliu/ai_game/tests"
|
||||
)
|
||||
func main() {
|
||||
fmt.Println("What's up bro")
|
||||
fmt.Println(tests.DoThis("Yo"))
|
||||
}
|
8
tests/tests.go
Normal file
8
tests/tests.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
package tests
|
||||
|
||||
import "fmt"
|
||||
|
||||
func DoThis(str string) string {
|
||||
fmt.Println(str)
|
||||
return fmt.Sprintf("This is the string returned: %v", str)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue