aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongheng Liu <z.liu@outlook.com.gr>2024-10-20 22:43:51 +0300
committerZhongheng Liu <z.liu@outlook.com.gr>2024-10-20 22:43:51 +0300
commit1ef0757412a2f3d3c835f22ce9dc9e472c23a7ae (patch)
treec9ccf56ed301f270257eeb297afeec01addc5f08
parent5dd1cc25e9212ac348fb8d4f2fa1c68688ba1058 (diff)
downloadrulmarc-1ef0757412a2f3d3c835f22ce9dc9e472c23a7ae.tar.gz
rulmarc-1ef0757412a2f3d3c835f22ce9dc9e472c23a7ae.tar.bz2
rulmarc-1ef0757412a2f3d3c835f22ce9dc9e472c23a7ae.zip
feat: some testing code lol
-rw-r--r--go.mod9
-rw-r--r--go.sum6
-rw-r--r--hello.go14
-rw-r--r--main.go10
-rw-r--r--tests/tests.go8
5 files changed, 19 insertions, 28 deletions
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)
+}