From 58ddce17dc31315f9e7136e959da1e7c9a990d0b Mon Sep 17 00:00:00 2001 From: Max Peng Date: Wed, 5 Aug 2020 22:29:42 +0800 Subject: [PATCH] chore: initial commit Signed-off-by: Max Peng --- README.md | 44 +++++++++++++++++++++----------------------- go.mod | 5 +++++ go.sum | 11 +++++++++++ justauth.go | 5 +++++ justauth_test.go | 10 ++++++++++ 5 files changed, 52 insertions(+), 23 deletions(-) create mode 100644 go.mod create mode 100644 go.sum create mode 100644 justauth.go create mode 100644 justauth_test.go diff --git a/README.md b/README.md index 096405b..9d3bdba 100644 --- a/README.md +++ b/README.md @@ -1,35 +1,33 @@ # justauth-go -Go 版 JustAuth +Go version of JustAuth -# 期待你的加入 +## Join Us -JustAuth 到如今以获得关注:![](https://img.shields.io/github/stars/zhangyd-c/JustAuth.svg?style=social) ![](https://gitee.com/yadong.zhang/JustAuth/badge/star.svg?theme=gvp),JustAuth 能取到如此成绩离不开社区小伙伴的努力和广大技术圈朋友的支持,时至今日,JustAuth 已渐趋完善,但仍有很大的提升空间。 +JustAuth has received widespread attention: ![](https://img.shields.io/github/stars/zhangyd-c/JustAuth.svg?style=social) ![](https://gitee.com/yadong.zhang/JustAuth/badge/star.svg?theme=gvp),JustAuth can't becomes so popular without the great effort of community members'. As time goes by, JustAuth has a lot of features now and still keep improving. -如果你对 JustAuth 感兴趣,如果你对开源比较感兴趣,那么我们期待你的参与。 +If you are interested in **`JustAuth`**, if you are interested in the open source community, we look forward to your participation. +## Contributing Steps -# 参与步骤 +- fork this repo +- clone the your forked repo to your local +- make changes on the `dev` branch +- commit & push to your forked repo +- create PR(pull request)to the upstream +- wait for the code review and approval -- fork 本项目到自己的 repo 。注意:一定要先 fork 到自己的仓库哦 -- 把 fork 过去的项目也就是你仓库中的项目 clone 到你本地 -- 修改代码( `dev` 分支) -- commit & push 到自己的仓库 -- 发起 PR(pull request) 请求,提交到本项目的 dev 分支 -- 等待管理员合并 +Sincerely look forward to your joining, **it is a kind of happiness to do something with people sharing the same value!** +## Overview -真诚的期待你的加入,**和一群志同道合的朋友一起做一件喜欢的事情是一种幸福!** +* Stable versions -# JustAuth 项目一览 - -## 已完成 - - [Java 版](https://github.com/justauth/JustAuth)(已完成) - [.Net 版](https://github.com/justauth/CollectiveOAuth)(已完成) + 1. [Java](https://github.com/justauth/JustAuth) (Stable) + 2. [.Net](https://github.com/justauth/CollectiveOAuth) (Stable) -## 未开始 +* Need help - [Python 版](https://github.com/justauth/justauth-python)(未开始) - [Go 版](https://github.com/justauth/justauth-go)(未开始) - [Node 版](https://github.com/justauth/justauth-node)(未开始) - [PHP 版](https://github.com/justauth/justauth-php)(未开始) + 1. [Go](https://github.com/justauth/justauth-go) (Developing) + 2. [Python](https://github.com/justauth/justauth-python) (TODO) + 3. [Node](https://github.com/justauth/justauth-node) (TODO) + 4. [PHP](https://github.com/justauth/justauth-php) (TODO) diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..4e6ca46 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module github.com/justauth/justauth-go + +go 1.14 + +require github.com/stretchr/testify v1.6.1 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..afe7890 --- /dev/null +++ b/go.sum @@ -0,0 +1,11 @@ +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/justauth.go b/justauth.go new file mode 100644 index 0000000..c197e9e --- /dev/null +++ b/justauth.go @@ -0,0 +1,5 @@ +package justauth + +func Hello() string { + return "Hello, justauth." +} diff --git a/justauth_test.go b/justauth_test.go new file mode 100644 index 0000000..c080a54 --- /dev/null +++ b/justauth_test.go @@ -0,0 +1,10 @@ +package justauth + +import "testing" +import "github.com/stretchr/testify/assert" + +func TestHello(t *testing.T) { + want := "Hello, justauth." + + assert.Equal(t, want, Hello()) +}