diff options
author | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-10-20 22:43:51 +0300 |
---|---|---|
committer | Zhongheng Liu <z.liu@outlook.com.gr> | 2024-10-20 22:43:51 +0300 |
commit | 1ef0757412a2f3d3c835f22ce9dc9e472c23a7ae (patch) | |
tree | c9ccf56ed301f270257eeb297afeec01addc5f08 | |
parent | 5dd1cc25e9212ac348fb8d4f2fa1c68688ba1058 (diff) | |
download | rulmarc-1ef0757412a2f3d3c835f22ce9dc9e472c23a7ae.tar.gz rulmarc-1ef0757412a2f3d3c835f22ce9dc9e472c23a7ae.tar.bz2 rulmarc-1ef0757412a2f3d3c835f22ce9dc9e472c23a7ae.zip |
feat: some testing code lol
-rw-r--r-- | go.mod | 9 | ||||
-rw-r--r-- | go.sum | 6 | ||||
-rw-r--r-- | hello.go | 14 | ||||
-rw-r--r-- | main.go | 10 | ||||
-rw-r--r-- | tests/tests.go | 8 |
5 files changed, 19 insertions, 28 deletions
@@ -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 -) @@ -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= diff --git a/hello.go b/hello.go deleted file mode 100644 index 82c645c..0000000 --- a/hello.go +++ /dev/null @@ -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()) -} @@ -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")) +} diff --git a/tests/tests.go b/tests/tests.go new file mode 100644 index 0000000..06d0a8d --- /dev/null +++ b/tests/tests.go @@ -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) +} |