summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-05 22:39:51 +0800
committerruki <[email protected]>2025-12-05 22:39:51 +0800
commit675ae541a3891782176d63f8e72166426afedc40 (patch)
tree4f17b25951116a79b1d5df646b86fbcfd4fc90f5
parentaff8fb5a4de914fa007bfc5cbffaa17fbcb1af33 (diff)
update templates
-rw-r--r--xmake/templates/go/static/project/src/module/add.go6
-rw-r--r--xmake/templates/go/static/project/src/module/sub.go6
2 files changed, 12 insertions, 0 deletions
diff --git a/xmake/templates/go/static/project/src/module/add.go b/xmake/templates/go/static/project/src/module/add.go
new file mode 100644
index 000000000..98ffef600
--- /dev/null
+++ b/xmake/templates/go/static/project/src/module/add.go
@@ -0,0 +1,6 @@
+package module
+
+func Add(a int, b int) int {
+ return a + b;
+}
+
diff --git a/xmake/templates/go/static/project/src/module/sub.go b/xmake/templates/go/static/project/src/module/sub.go
new file mode 100644
index 000000000..a24a9abb7
--- /dev/null
+++ b/xmake/templates/go/static/project/src/module/sub.go
@@ -0,0 +1,6 @@
+package module
+
+func Sub(a int, b int) int {
+ return a - b;
+}
+