Skip to content

Commit bdea4c7

Browse files
authored
Merge pull request #24 from lvan100/main
build: Update version number to v1.2.0
2 parents 261d513 + d27739c commit bdea4c7

File tree

4 files changed

+99
-51
lines changed

4 files changed

+99
-51
lines changed

CONTRIBUTING.md

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,5 @@
11
# Contributing to Go-Spring
22

3-
首先,感谢你关注并支持 Go-Spring 项目!
4-
5-
我们欢迎各种形式的贡献,包括但不限于 Issue 提交、文档完善、Bug 修复、功能开发等。请按照以下指引参与贡献:
6-
7-
## 提交 Issue
8-
9-
- 在提交前,请先搜索现有的 Issue,避免重复提交。
10-
- 请提供清晰的复现步骤、预期行为以及实际结果。
11-
- 如有错误日志或运行环境信息,请一并附上。
12-
13-
## 提交 Pull Request
14-
15-
1. **Fork 仓库并创建新分支**
16-
```bash
17-
git checkout -b feature/your-feature-name
18-
```
19-
20-
2. **保持一致的代码风格**
21-
- 遵循 Go 官方代码规范(使用 `gofmt``golint``go vet`
22-
- 推荐使用 [`golangci-lint`](https://github.com/golangci/golangci-lint) 进行本地代码检查
23-
24-
3. **编写测试用例**
25-
- 所有新功能必须配备单元测试
26-
- 使用 Go 内置的 `testing` 包,测试文件应命名为 `xxx_test.go`
27-
28-
4. **更新相关文档(如有变更)**
29-
30-
5. **提交并创建 Pull Request**
31-
- 说明 PR 的目的、变更内容、测试情况等
32-
- 关联相关 Issue(如有)
33-
34-
## 本地开发环境要求
35-
36-
- Go 版本:推荐使用最新版稳定版(如 `go1.21+`
37-
- 使用 Go Modules 进行依赖管理
38-
- 确保测试全部通过:
39-
```bash
40-
go test ./...
41-
```
42-
43-
## 联系我们
44-
45-
如有疑问,欢迎通过 Issue 与我们联系,或参与项目的讨论区。
46-
47-
感谢你的贡献!
48-
49-
---
50-
51-
# Contributing to Go-Spring
52-
533
First of all, thank you for your interest in and support of the Go-Spring project!
544

555
We welcome all kinds of contributions, including reporting issues, improving documentation, fixing bugs, and developing
@@ -96,3 +46,53 @@ new features. Please follow the guidelines below to contribute:
9646
If you have any questions, feel free to open an issue or join the discussion forum.
9747

9848
Thank you for contributing!
49+
50+
---
51+
52+
# Contributing to Go-Spring
53+
54+
首先,感谢你关注并支持 Go-Spring 项目!
55+
56+
我们欢迎各种形式的贡献,包括但不限于 Issue 提交、文档完善、Bug 修复、功能开发等。请按照以下指引参与贡献:
57+
58+
## 提交 Issue
59+
60+
- 在提交前,请先搜索现有的 Issue,避免重复提交。
61+
- 请提供清晰的复现步骤、预期行为以及实际结果。
62+
- 如有错误日志或运行环境信息,请一并附上。
63+
64+
## 提交 Pull Request
65+
66+
1. **Fork 仓库并创建新分支**
67+
```bash
68+
git checkout -b feature/your-feature-name
69+
```
70+
71+
2. **保持一致的代码风格**
72+
- 遵循 Go 官方代码规范(使用 `gofmt``golint``go vet`
73+
- 推荐使用 [`golangci-lint`](https://github.com/golangci/golangci-lint) 进行本地代码检查
74+
75+
3. **编写测试用例**
76+
- 所有新功能必须配备单元测试
77+
- 使用 Go 内置的 `testing` 包,测试文件应命名为 `xxx_test.go`
78+
79+
4. **更新相关文档(如有变更)**
80+
81+
5. **提交并创建 Pull Request**
82+
- 说明 PR 的目的、变更内容、测试情况等
83+
- 关联相关 Issue(如有)
84+
85+
## 本地开发环境要求
86+
87+
- Go 版本:推荐使用最新版稳定版(如 `go1.21+`
88+
- 使用 Go Modules 进行依赖管理
89+
- 确保测试全部通过:
90+
```bash
91+
go test ./...
92+
```
93+
94+
## 联系我们
95+
96+
如有疑问,欢迎通过 Issue 与我们联系,或参与项目的讨论区。
97+
98+
感谢你的贡献!

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,3 +614,27 @@ s := gstest.Wire(t, new(struct {
614614
}))
615615
assert.That(t, s.SvrAddr).Equal("0.0.0.0:9090")
616616
```
617+
618+
## 📚 Comparison with Other Frameworks
619+
620+
Go-Spring differentiates itself with these key features:
621+
622+
| Feature | Go-Spring | Wire | fx | dig |
623+
|--------------------------|-----------|------|----|-----|
624+
| Runtime IoC Container |||||
625+
| Compile-time Validation | Partial ||||
626+
| Conditional Beans |||||
627+
| Dynamic Configuration |||||
628+
| Lifecycle Management |||||
629+
| Property Binding |||||
630+
| Zero-struct Modification |||||
631+
632+
## 🏢 Who's using Go-Spring?
633+
634+
- ...
635+
636+
> Using Go-Spring and want to be featured here? Welcome to submit a PR!
637+
638+
## 🤝 Contributing
639+
640+
We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) to get started.

README_CN.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,3 +576,27 @@ s := gstest.Wire(t, new(struct {
576576
}))
577577
assert.That(t, s.SvrAddr).Equal("0.0.0.0:9090")
578578
```
579+
580+
## 📚 与其他框架的对比
581+
582+
Go-Spring 具备以下几个显著优势:
583+
584+
| 功能点 | Go-Spring | Wire | fx | dig |
585+
|------------------|-----------|------|----|-----|
586+
| 运行时 IoC 容器 |||||
587+
| 编译期校验 | 部分支持 ||||
588+
| 条件 Bean 支持 |||||
589+
| 动态配置能力 |||||
590+
| 生命周期管理 |||||
591+
| 属性绑定 |||||
592+
| 零结构体侵入(无需修改原结构体) |||||
593+
594+
## 🏢 谁在使用 Go-Spring?
595+
596+
- ...
597+
598+
> 在使用 Go-Spring 并希望展示在此处?欢迎提交 PR!
599+
600+
## 🤝 参与贡献
601+
602+
我们欢迎所有形式的贡献!请查阅 [CONTRIBUTING.md](CONTRIBUTING.md) 获取参与方式。

gs/gs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434
)
3535

3636
const (
37-
Version = "[email protected].rc2"
37+
Version = "[email protected]"
3838
Website = "https://go-spring.com/"
3939
)
4040

0 commit comments

Comments
 (0)