From 1ef0757412a2f3d3c835f22ce9dc9e472c23a7ae Mon Sep 17 00:00:00 2001 From: Zhongheng Liu Date: Sun, 20 Oct 2024 22:43:51 +0300 Subject: [PATCH] feat: some testing code lol --- go.mod | 9 +-------- go.sum | 6 ------ hello.go | 14 -------------- main.go | 10 ++++++++++ tests/tests.go | 8 ++++++++ 5 files changed, 19 insertions(+), 28 deletions(-) delete mode 100644 go.sum delete mode 100644 hello.go create mode 100644 main.go create mode 100644 tests/tests.go diff --git a/go.mod b/go.mod index 1304b27..83dffeb 100644 --- a/go.mod +++ b/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 -) diff --git a/go.sum b/go.sum deleted file mode 100644 index 4a8bcd7..0000000 --- a/go.sum +++ /dev/null @@ -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()) -} diff --git a/main.go b/main.go new file mode 100644 index 0000000..13f9c98 --- /dev/null +++ b/main.go @@ -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) +}