diff options
| author | ruki <[email protected]> | 2025-12-05 22:39:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-05 22:39:51 +0800 |
| commit | 675ae541a3891782176d63f8e72166426afedc40 (patch) | |
| tree | 4f17b25951116a79b1d5df646b86fbcfd4fc90f5 | |
| parent | aff8fb5a4de914fa007bfc5cbffaa17fbcb1af33 (diff) | |
update templates
| -rw-r--r-- | xmake/templates/go/static/project/src/module/add.go | 6 | ||||
| -rw-r--r-- | xmake/templates/go/static/project/src/module/sub.go | 6 |
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; +} + |
