File size: 2,343 Bytes
530729e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# 贡献

如果你想要对项目作出贡献,却不知道怎么做,下面有一些帮助:

* 翻译
    * README.md
    * [docs](https://github.com/GoAdminGroup/docs/issues/1)
* 寻找BUG
* 寻找安全问题
* 主题和插件

在这里:[功能规划](https://github.com/GoAdminGroup/go-admin/projects/3) 可以获得更多信息。

你也可以看一下所有开放的issues,从这里去入手:

https://github.com/search?q=org%3AGoAdminGroup+is%3Aopen+is%3Aissue+archived%3Afalse&type=Issues

## 如何做贡献

GoAdmin 使用 GitHub 来管理项目代码:

- 如果你发现一些微不足道的fix或者功能增加,直接提pr即可;
- 如果你有一些提议,那么你可以先开一个issue进行讨论;

然后,你需要fork远程的master分支到你本地 **\$GOPATH**/src/github.com/GoAdminGroup/go-admin :

```bash

$ go get github.com/GoAdminGroup/go-admin
$ cd $GOPATH/src/github.com/GoAdminGroup/go-admin # GOPATH is $HOME/go by default.

$ git remote add <FORK_NAME> <FORK_URL>
```

在你提交代码之前,记得执行下面这个命令: 

```
make test
```

看根目录下的```Makefile```获得更多信息。

注意了: `go get` 返回 `package github.com/GoAdminGroup/go-admin: no Go files in /go/src/github.com/GoAdminGroup/go-admin` 是正常的。

### 依赖管理

我们使用 [Go modules](https://golang.org/cmd/go/#hdr-Modules__module_versions__and_more) 来管理依赖。
这需要 golang 版本大于1.11,以及安装了 git

要增加或更新依赖,就使用 `go get` 命令:

```bash
# Pick the latest tagged release.
go get example.com/some/module/pkg

# Pick a specific version.
go get example.com/some/module/[email protected]
```

整理好 `go.mod``go.sum````bash
go mod tidy
go mod vendor
git add go.mod go.sum vendor
git commit
```

直接提交 `go.mod` and `go.sum` 的修改。

# 赞助

你可以捐助或参与众筹来帮助我们维护服务器费用,以及提供一些奖金资助项目发展。

* **Support on [Open Collective](https://opencollective.com/go-admin)**
* Donate via [PayPal](https://paypal.me/cg80333)

# 成员

如果你已经是GoAdmin的官方开发组成员:

* [Discussions](http://forum.go-admin.cn)
* [Tasks](https://github.com/GoAdminGroup/go-admin/projects)
* [Chat](https://t.me/joinchat/NlyH6Bch2QARZkArithKvg)