55
66> Bitbucket-API library for golang.
77
8- Support Bitbucket API v2.0.
8+ Support Bitbucket API v2.0.
99
1010And the response type is json format defined Bitbucket API.
1111
@@ -26,7 +26,7 @@ package main
2626import (
2727 " fmt"
2828
29- " github.com/ktrysmt/go-bitbucket"
29+ " github.com/ktrysmt/go-bitbucket"
3030)
3131
3232func 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.
6464And 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
8179Set 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>
8785export 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
9290And just run,
9391
0 commit comments