Skip to content

Commit

Permalink
Merge pull request #3 from csandman/chore/cleanup
Browse files Browse the repository at this point in the history
chore: Clean up badges, go mod, and license
  • Loading branch information
Alexander Pikeev authored May 20, 2024
2 parents 5f9efc7 + 0776e01 commit 1d93aa0
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 23 deletions.
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 TheCodingMachine
Copyright (c) 2024 dcaraxes

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**🔥 Working with Gotenberg version 8 and higher! 🔥**
**🔥 Working with Gotenberg version 8 and higher! 🔥**

# Gotenberg Go client

Expand Down Expand Up @@ -62,6 +62,5 @@ For more complete usages, head to the [documentation](https://gotenberg.dev/).

## Badges

[![Travis CI](https://travis-ci.org/thecodingmachine/gotenberg-go-client.svg?branch=master)](https://travis-ci.org/thecodingmachine/gotenberg-go-client)
[![GoDoc](https://godoc.org/github.com/thecodingmachine/gotenberg-go-client?status.svg)](https://godoc.org/github.com/thecodingmachine/gotenberg-go-client)
[![Go Report Card](https://goreportcard.com/badge/github.com/thecodingmachine/gotenberg-go-client)](https://goreportcard.com/report/thecodingmachine/gotenberg-go-client)
[![GoDoc](https://godoc.org/github.com/dcaraxes/gotenberg-go-client/v8?status.svg)](https://godoc.org/github.com/dcaraxes/gotenberg-go-client/v8)
[![Go Report Card](https://goreportcard.com/badge/github.com/dcaraxes/gotenberg-go-client/v8)](https://goreportcard.com/report/github.com/dcaraxes/gotenberg-go-client/v8)
10 changes: 5 additions & 5 deletions build/tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG GOTENBERG_VERSION

FROM golang:${GOLANG_VERSION}-alpine AS golang

FROM thecodingmachine/gotenberg:${GOTENBERG_VERSION}
FROM gotenberg/gotenberg:${GOTENBERG_VERSION}

USER root

Expand All @@ -13,9 +13,9 @@ USER root
# |
# | Libraries used in the build process of this image.
# |
RUN apt-get update
RUN apt-get install -y build-essential
RUN apt-get install manpages-dev
RUN apt-get update \
&& apt-get install -y build-essential \
&& apt-get install manpages-dev

# |--------------------------------------------------------------------------
# | Golang
Expand Down Expand Up @@ -53,4 +53,4 @@ COPY go.sum .
# Install module dependencies.
RUN go mod download

ENTRYPOINT [ "build/tests/docker-entrypoint.sh" ]
ENTRYPOINT [ "build/tests/docker-entrypoint.sh" ]
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ Package gotenberg is a Go client for
interacting with a Gotenberg API.
For more complete usages, head to the documentation:
https://thecodingmachine.github.io/gotenberg/
https://gotenberg.dev/
*/
package gotenberg
5 changes: 2 additions & 3 deletions document.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bytes"
"fmt"
"io"
"io/ioutil"
"os"
"strings"
)
Expand Down Expand Up @@ -69,7 +68,7 @@ func NewDocumentFromString(filename, data string) (Document, error) {
}

func (doc *documentFromString) Reader() (io.ReadCloser, error) {
return ioutil.NopCloser(strings.NewReader(doc.data)), nil
return io.NopCloser(strings.NewReader(doc.data)), nil
}

type documentFromBytes struct {
Expand All @@ -91,7 +90,7 @@ func NewDocumentFromBytes(filename string, data []byte) (Document, error) {
}

func (doc *documentFromBytes) Reader() (io.ReadCloser, error) {
return ioutil.NopCloser(bytes.NewReader(doc.data)), nil
return io.NopCloser(bytes.NewReader(doc.data)), nil
}

// Compile-time checks to ensure type implements desired interfaces.
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ module github.com/dcaraxes/gotenberg-go-client/v8

go 1.22.0

require (
github.com/stretchr/testify v1.9.0
)
require github.com/stretchr/testify v1.9.0

require (
github.com/davecgh/go-spew v1.1.1 // indirect
Expand Down
5 changes: 0 additions & 5 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/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.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/thecodingmachine/gotenberg-go-client/v7 v7.2.0 h1:wsdZLvaHRttyvaji+0zqhDNeVXt4atA1A3XNqDkUTVo=
github.com/thecodingmachine/gotenberg-go-client/v7 v7.2.0/go.mod h1:ABZ2YPzV+IMgtj91+DkoB8/y3qezCQvWhKnGxkY2cSs=
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.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
Expand Down

0 comments on commit 1d93aa0

Please sign in to comment.