Skip to content

Commit 3ae508e

Browse files
authored
update go.mod and readme. (#83)
1 parent 06d419f commit 3ae508e

File tree

3 files changed

+32
-19
lines changed

3 files changed

+32
-19
lines changed

README.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
> Bitbucket-API library for golang.
77
8-
Support Bitbucket API v2.0.
8+
Support Bitbucket API v2.0.
99

1010
And the response type is json format defined Bitbucket API.
1111

@@ -26,7 +26,7 @@ package main
2626
import (
2727
"fmt"
2828

29-
"github.com/ktrysmt/go-bitbucket"
29+
"github.com/ktrysmt/go-bitbucket"
3030
)
3131

3232
func main() {
@@ -47,7 +47,7 @@ func main() {
4747
panic(err)
4848
}
4949

50-
fmt.Println(res)
50+
fmt.Println(res)
5151
}
5252
```
5353

@@ -59,35 +59,33 @@ It does not correspond yet. Because there are many differences between v2.0 and
5959

6060
- Bitbucket API v1.0 <https://confluence.atlassian.com/bitbucket/version-1-423626337.html>
6161

62-
It is officially recommended to use v2.0.
63-
But unfortunately Bitbucket Server (formerly: Stash) API is still v1.0.
62+
It is officially recommended to use v2.0.
63+
But unfortunately Bitbucket Server (formerly: Stash) API is still v1.0.
6464
And The API v1.0 covers resources that the v2.0 API and API v2.0 is yet to cover.
6565

6666
## Development
6767

6868
### Install dependencies
6969

70-
It's using dep.
70+
It's using `go mod`.
7171

7272
```sh
73-
go get github.com/golang/dep/...
74-
git clone https://github.com/ktrysmt/go-bitbucket
75-
cd ./go-bitbucket
76-
dep ensure
73+
export GO111MODULE=auto # or, =on
74+
go build
7775
```
7876

7977
### How to testing
8078

8179
Set your available user account to Global Env.
8280

8381
```sh
84-
export BITBUCKET_TEST_USERNAME=<your_username>
85-
export BITBUCKET_TEST_PASSWORD=<your_password>
86-
export BITBUCKET_TEST_OWNER=<your_repo_owner>
82+
export BITBUCKET_TEST_USERNAME=<your_username>
83+
export BITBUCKET_TEST_PASSWORD=<your_password>
84+
export BITBUCKET_TEST_OWNER=<your_repo_owner>
8785
export BITBUCKET_TEST_REPOSLUG=<your_repo_name>
8886
```
8987

90-
Refs; URL Syntax is `https://<your_username>:<your_password>@bitbucket.org/<your_repo_owner>/<your_repo_name>.git`.
88+
Refs; URL Syntax is `https://<your_username>:<your_password>@bitbucket.org/<your_repo_owner>/<your_repo_name>.git`.
9189

9290
And just run,
9391

go.mod

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ module github.com/ktrysmt/go-bitbucket
33
go 1.12
44

55
require (
6-
github.com/golang/protobuf v1.0.0
6+
github.com/golang/protobuf v1.0.0 // indirect
7+
github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 // indirect
78
github.com/k0kubun/pp v2.3.0+incompatible
8-
github.com/mattn/go-colorable v0.0.9
9-
github.com/mattn/go-isatty v0.0.3
9+
github.com/mattn/go-colorable v0.0.9 // indirect
10+
github.com/mattn/go-isatty v0.0.3 // indirect
1011
github.com/mitchellh/mapstructure v0.0.0-20180220230111-00c29f56e238
1112
golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01
1213
golang.org/x/oauth2 v0.0.0-20180227000427-d7d64896b5ff
13-
golang.org/x/sys v0.0.0-20180224232135-f6cff0780e54
14-
google.golang.org/appengine v1.0.0
14+
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect
15+
golang.org/x/sys v0.0.0-20180224232135-f6cff0780e54 // indirect
16+
google.golang.org/appengine v1.0.0 // indirect
1517
)

go.sum

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1+
github.com/golang/protobuf v1.0.0 h1:lsek0oXi8iFE9L+EXARyHIjU5rlWIhhTkjDz3vHhWWQ=
12
github.com/golang/protobuf v1.0.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
3+
github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 h1:uC1QfSlInpQF+M0ao65imhwqKnz3Q2z/d8PWZRMQvDM=
4+
github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88/go.mod h1:3w7q1U84EfirKl04SVQ/s7nPm1ZPhiXd34z40TNz36k=
5+
github.com/k0kubun/pp v2.3.0+incompatible h1:EKhKbi34VQDWJtq+zpsKSEhkHHs9w2P8Izbq8IhLVSo=
26
github.com/k0kubun/pp v2.3.0+incompatible/go.mod h1:GWse8YhT0p8pT4ir3ZgBbfZild3tgzSScAn6HmfYukg=
7+
github.com/mattn/go-colorable v0.0.9 h1:UVL0vNpWh04HeJXV0KLcaT7r06gOH2l4OW6ddYRUIY4=
38
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
9+
github.com/mattn/go-isatty v0.0.3 h1:ns/ykhmWi7G9O+8a448SecJU3nSMBXJfqQkl0upE1jI=
410
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
11+
github.com/mitchellh/mapstructure v0.0.0-20180220230111-00c29f56e238 h1:+MZW2uvHgN8kYvksEN3f7eFL2wpzk0GxmlFsMybWc7E=
512
github.com/mitchellh/mapstructure v0.0.0-20180220230111-00c29f56e238/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
13+
golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01 h1:po1f06KS05FvIQQA2pMuOWZAUXiy1KYdIf0ElUU2Hhc=
614
golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
15+
golang.org/x/oauth2 v0.0.0-20180227000427-d7d64896b5ff h1:WbI0V2v8RZPTlOMrecBqqba3029Z6l7jeFySSGaN/jk=
716
golang.org/x/oauth2 v0.0.0-20180227000427-d7d64896b5ff/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
17+
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY=
18+
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
19+
golang.org/x/sys v0.0.0-20180224232135-f6cff0780e54 h1:4qAtdeqGYyXU2CfUvLomEFw0cl5IxNxmEhXL52ODpiU=
820
golang.org/x/sys v0.0.0-20180224232135-f6cff0780e54/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
21+
google.golang.org/appengine v1.0.0 h1:dN4LljjBKVChsv0XCSI+zbyzdqrkEwX5LQFUMRSGqOc=
922
google.golang.org/appengine v1.0.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=

0 commit comments

Comments
 (0)