Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Go 1.13 #5

Merged
merged 6 commits into from
Nov 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@ language: go
sudo: false

before_install:
- go get github.com/golang/dep/cmd/dep
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover

matrix:
fast_finish: true
include:
- go: 1.7
script: make test
- go: 1.8
- go: 1.13
script: make test

after_success:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Contributing
--------------------------------------------------------------------------------

1. Fork it ( https://github.com/Tomohiro/go-gyazo/fork )
1. Fork it ( https://github.com/tomohiro/go-gyazo/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Run `goimports` or `gofmt -s` to format your codes.
4. Commit your changes (`git commit -am 'Add some feature'`)
Expand Down
7 changes: 0 additions & 7 deletions Gopkg.toml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015 - 2017 Tomohiro TAIRA
Copyright (c) 2015 - 2019 Tomohiro Taira

MIT License

Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ test: deps

deps:
@echo "===> Installing runtime dependencies..."
dep ensure
go mod download
go mod verify
go list -m all

updatedeps:
@echo "===> Updating runtime dependencies..."
dep ensure -update
go get -u ./${PACKAGE}
go mod tidy
go list -m all

.PHONY: help test deps updatedeps
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
go-gyazo
================================================================================

[![Build Status](https://img.shields.io/travis/Tomohiro/go-gyazo.svg?style=flat-square)](https://travis-ci.org/Tomohiro/go-gyazo)
[![Coverage Status](https://img.shields.io/coveralls/Tomohiro/go-gyazo.svg?style=flat-square)](https://coveralls.io/github/Tomohiro/go-gyazo)
[![Go Report Card](https://goreportcard.com/badge/github.com/Tomohiro/go-gyazo?style=flat-square)](https://goreportcard.com/report/github.com/Tomohiro/go-gyazo)
[![GoDoc Reference](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://godoc.org/github.com/Tomohiro/go-gyazo/gyazo)
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/Tomohiro/go-gyazo/blob/master/LICENSE)
[![Build Status](https://img.shields.io/travis/tomohiro/go-gyazo.svg?style=flat-square)](https://travis-ci.org/tomohiro/go-gyazo)
[![Coverage Status](https://img.shields.io/coveralls/tomohiro/go-gyazo.svg?style=flat-square)](https://coveralls.io/github/tomohiro/go-gyazo)
[![Go Report Card](https://goreportcard.com/badge/github.com/tomohiro/go-gyazo?style=flat-square)](https://goreportcard.com/report/github.com/tomohiro/go-gyazo)
[![GoDoc Reference](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://godoc.org/github.com/tomohiro/go-gyazo/gyazo)
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/tomohiro/go-gyazo/blob/master/LICENSE)

go-gyazo is a library for Go for accessing the [Gyazo API](https://gyazo.com/api).

Expand All @@ -16,7 +16,7 @@ Installation
Use `go get`:

```sh
$ go get -d github.com/Tomohiro/go-gyazo
$ go get -d github.com/tomohiro/go-gyazo
```


Expand All @@ -28,7 +28,7 @@ Usage
Import this package like this:

```go
import "github.com/Tomohiro/go-gyazo/gyazo"
import "github.com/tomohiro/go-gyazo/gyazo"
```

Create a client with your [Gyazo access token](https://gyazo.com/oauth/applications):
Expand Down Expand Up @@ -65,7 +65,7 @@ fmt.Println(image.PermalinkURL) // http://gyazo.com/8980c52421e452ac3355ca3e5cfe
result, _ := gyazo.Delete("8980c52421e452ac3355ca3e5cfe7a0c")
```

For complete usage of go-gyazo, see the full [package docs](https://godoc.org/github.com/Tomohiro/go-gyazo/gyazo).
For complete usage of go-gyazo, see the full [package docs](https://godoc.org/github.com/tomohiro/go-gyazo/gyazo).


Contributing
Expand All @@ -77,6 +77,6 @@ Please check out the [CONTIRBUTING](CONTRIBUTING.md) guideline.
LICENSE
--------------------------------------------------------------------------------

© 2015 - 2017 Tomohiro TAIRA.
© 2015 - 2019 Tomohiro Taira.

This project is licensed under the MIT license. See [LICENSE](LICENSE) for details.
12 changes: 12 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module github.com/tomohiro/go-gyazo

go 1.13

require (
github.com/golang/protobuf v1.3.2 // indirect
github.com/google/go-querystring v1.0.0
github.com/pkg/errors v0.8.1
golang.org/x/net v0.0.0-20191119073136-fc4aabc6c914 // indirect
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
google.golang.org/appengine v1.6.5 // indirect
)
26 changes: 26 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs=
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
golang.org/x/net v0.0.0-20191119073136-fc4aabc6c914 h1:MlY3mEfbnWGmUi4rtHOtNnnnN4UJRGSyLPx+DXA5Sq4=
golang.org/x/net v0.0.0-20191119073136-fc4aabc6c914/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.6.5 h1:tycE03LOZYQNhDpS27tcQdAzLCVMaj7QT2SXxebnpCM=
google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=