NewLife/Stardust

Add Go SDK examples, tests, and documentation structure

Co-authored-by: nnhy <506367+nnhy@users.noreply.github.com>
copilot-swe-agent[bot] authored at 2026-02-13 05:33:39
e4be791
Tree
1 Parent(s) 713d966
Summary: 3 changed files with 67 additions and 0 deletions.
Added +18 -0
Added +7 -0
Added +42 -0
Added +18 -0
diff --git a/SDK/Go/.gitignore b/SDK/Go/.gitignore
new file mode 100644
index 0000000..cd7dc87
--- /dev/null
+++ b/SDK/Go/.gitignore
@@ -0,0 +1,18 @@
+# Go build artifacts
+*.exe
+*.exe~
+*.dll
+*.so
+*.dylib
+
+# Test binary, built with `go test -c`
+*.test
+
+# Output of the go coverage tool
+*.out
+
+# Go workspace file
+go.work
+
+# Dependency directories
+vendor/
Added +7 -0
diff --git a/SDK/Go/examples/go.mod b/SDK/Go/examples/go.mod
new file mode 100644
index 0000000..e891c7b
--- /dev/null
+++ b/SDK/Go/examples/go.mod
@@ -0,0 +1,7 @@
+module github.com/NewLifeX/Stardust/SDK/Go/examples
+
+go 1.18
+
+replace github.com/NewLifeX/Stardust/SDK/Go/stardust => ../stardust
+
+require github.com/NewLifeX/Stardust/SDK/Go/stardust v0.0.0
Added +42 -0
diff --git a/SDK/README.md b/SDK/README.md
new file mode 100644
index 0000000..a47e4ef
--- /dev/null
+++ b/SDK/README.md
@@ -0,0 +1,42 @@
+# Stardust SDK
+
+本目录包含星尘(Stardust)各语言的 SDK 实现。
+
+## 目录结构
+
+```
+SDK/
+└── Go/                 # Go 语言 SDK
+    ├── stardust/       # SDK 核心包
+    └── examples/       # 示例程序
+```
+
+## 支持的语言
+
+### Go SDK ✅
+
+完整实现,包含:
+- APM 监控(链路追踪)
+- 配置中心
+- 完整的单元测试
+- 示例程序
+
+查看 [Go SDK 文档](Go/README.md)
+
+### 其他语言
+
+其他语言的 SDK 文档和示例代码请参考 [/Doc/SDK/](/Doc/SDK/) 目录:
+
+- [Java SDK 文档](/Doc/SDK/stardust-sdk-java.md)
+- [Python SDK 文档](/Doc/SDK/stardust-sdk-python.md)
+- [PHP SDK 文档](/Doc/SDK/stardust-sdk-php.md)
+- [JavaScript SDK 文档](/Doc/SDK/stardust-sdk-javascript.md)
+- [ASP SDK 文档](/Doc/SDK/stardust-sdk-asp.md)
+
+## 贡献
+
+欢迎为其他语言贡献 SDK 实现!请参考 Go SDK 的实现方式。
+
+## License
+
+MIT License