summaryrefslogtreecommitdiff
path: root/xmake
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-05 22:39:48 +0800
committerruki <[email protected]>2025-12-05 22:39:48 +0800
commitaff8fb5a4de914fa007bfc5cbffaa17fbcb1af33 (patch)
tree876b3d67fe9cbd4b3d6b7503d6b2aef8df1e0a21 /xmake
parentfb62fc088bf2ec39cace99a87101946e891febd2 (diff)
fix examples
Diffstat (limited to 'xmake')
-rw-r--r--xmake/templates/go/static/project/src/test/add.go6
-rw-r--r--xmake/templates/go/static/project/src/test/sub.go6
-rw-r--r--xmake/templates/go/static/project/xmake.lua2
3 files changed, 1 insertions, 13 deletions
diff --git a/xmake/templates/go/static/project/src/test/add.go b/xmake/templates/go/static/project/src/test/add.go
deleted file mode 100644
index 98ffef600..000000000
--- a/xmake/templates/go/static/project/src/test/add.go
+++ /dev/null
@@ -1,6 +0,0 @@
-package module
-
-func Add(a int, b int) int {
- return a + b;
-}
-
diff --git a/xmake/templates/go/static/project/src/test/sub.go b/xmake/templates/go/static/project/src/test/sub.go
deleted file mode 100644
index a24a9abb7..000000000
--- a/xmake/templates/go/static/project/src/test/sub.go
+++ /dev/null
@@ -1,6 +0,0 @@
-package module
-
-func Sub(a int, b int) int {
- return a - b;
-}
-
diff --git a/xmake/templates/go/static/project/xmake.lua b/xmake/templates/go/static/project/xmake.lua
index 2e06e32ff..076ac6460 100644
--- a/xmake/templates/go/static/project/xmake.lua
+++ b/xmake/templates/go/static/project/xmake.lua
@@ -2,7 +2,7 @@ add_rules("mode.debug", "mode.release")
target("module")
set_kind("static")
- add_files("src/test/*.go")
+ add_files("src/module/*.go")
target("${TARGETNAME}_demo")
set_kind("binary")