├── justauth.go ├── go.mod ├── justauth_test.go ├── .gitignore ├── go.sum ├── LICENSE └── README.md /justauth.go: -------------------------------------------------------------------------------- 1 | package justauth 2 | 3 | func Hello() string { 4 | return "Hello, justauth." 5 | } 6 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/justauth/justauth-go 2 | 3 | go 1.14 4 | 5 | require github.com/stretchr/testify v1.6.1 6 | -------------------------------------------------------------------------------- /justauth_test.go: -------------------------------------------------------------------------------- 1 | package justauth 2 | 3 | import "testing" 4 | import "github.com/stretchr/testify/assert" 5 | 6 | func TestHello(t *testing.T) { 7 | want := "Hello, justauth." 8 | 9 | assert.Equal(t, want, Hello()) 10 | } 11 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, built with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | 14 | # Dependency directories (remove the comment below to include it) 15 | # vendor/ 16 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= 2 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 3 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 4 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 5 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 6 | github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= 7 | github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 8 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 9 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 10 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= 11 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 12 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 JustAuth 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # justauth-go 2 | Go version of JustAuth 3 | 4 | ## Join Us 5 | 6 | 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. 7 | 8 | If you are interested in **`JustAuth`**, if you are interested in the open source community, we look forward to your participation. 9 | 10 | ## Contributing Steps 11 | 12 | - fork this repo 13 | - clone the your forked repo to your local 14 | - make changes on the `dev` branch 15 | - commit & push to your forked repo 16 | - create PR(pull request)to the upstream 17 | - wait for the code review and approval 18 | 19 | Sincerely look forward to your joining, **it is a kind of happiness to do something with people sharing the same value!** 20 | 21 | ## Overview 22 | 23 | * Stable versions 24 | 25 | 1. [Java](https://github.com/justauth/JustAuth) (Stable) 26 | 2. [.Net](https://github.com/justauth/CollectiveOAuth) (Stable) 27 | 28 | * Need help 29 | 30 | 1. [Go](https://github.com/justauth/justauth-go) (Developing) 31 | 2. [Python](https://github.com/justauth/justauth-python) (TODO) 32 | 3. [Node](https://github.com/justauth/justauth-node) (TODO) 33 | 4. [PHP](https://github.com/justauth/justauth-php) (TODO) 34 | --------------------------------------------------------------------------------