From 86010310050afc1e4cc088a1d84ac5026d5c2793 Mon Sep 17 00:00:00 2001 From: ZuoZuo <68836346+Mrz-sakura@users.noreply.github.com> Date: Sat, 4 Apr 2026 01:33:51 +0800 Subject: [PATCH] Initial commit --- .gitignore | 1 + README.md | 21 +++++++++++++++++++++ common.go | 4 ++++ go.mod | 3 +++ proto/test.proto | 0 5 files changed, 29 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 common.go create mode 100644 go.mod create mode 100644 proto/test.proto diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/README.md b/README.md new file mode 100644 index 0000000..f4a50d4 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# ChatAppCommon + +Shared Go module for ChatApp services. + +Module path: + +`43.132.178.96/hy/ChatAppCommon.git` + +Install: + +```bash +go env -w GOPRIVATE=43.132.178.96 +git config --global url."git@43.132.178.96:".insteadOf "https://43.132.178.96/" +go get 43.132.178.96/hy/ChatAppCommon.git@v0.1.0 +``` + +Import: + +```go +import common "43.132.178.96/hy/ChatAppCommon.git" +``` diff --git a/common.go b/common.go new file mode 100644 index 0000000..c7b2ac0 --- /dev/null +++ b/common.go @@ -0,0 +1,4 @@ +// Package common provides shared code for ChatApp services. +package common + +const Version = "v0.1.0" diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..5ef7b01 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module 43.132.178.96/hy/ChatAppCommon.git + +go 1.23.1 diff --git a/proto/test.proto b/proto/test.proto new file mode 100644 index 0000000..e69de29