Skip to content

Commit 29a0530

Browse files
committed
Update deps
1 parent 62ee3f1 commit 29a0530

File tree

7 files changed

+36
-40
lines changed

7 files changed

+36
-40
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: gomod
4+
directory: /
5+
schedule:
6+
interval: daily

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
- name: Setup Dependencies
1919
run: |
20-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sudo sh -s -- -b $GOPATH/bin v1.24.0
20+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sudo sh -s -- -b $GOPATH/bin
2121
golangci-lint --version
2222
go get golang.org/x/tools/cmd/cover
2323
go get -t -v ./...

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
repos:
22
- repo: https://github.com/tekwizely/pre-commit-golang
3-
rev: master
3+
rev: v1.0.0-rc.2
44
hooks:
55
- id: go-fumpt
66
- id: go-mod-tidy
77
- id: go-lint
88
- id: go-imports
99
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v2.3.0
10+
rev: v6.0.0
1111
hooks:
1212
- id: check-yaml
1313
- id: end-of-file-fixer

README.md

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
# go-http-client
1+
# neero-go
22

3-
[![Build](https://github.com/NdoleStudio/go-http-client/actions/workflows/main.yml/badge.svg)](https://github.com/NdoleStudio/go-http-client/actions/workflows/main.yml)
4-
[![codecov](https://codecov.io/gh/NdoleStudio/go-http-client/branch/main/graph/badge.svg)](https://codecov.io/gh/NdoleStudio/go-http-client)
5-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/NdoleStudio/go-http-client/badges/quality-score.png?b=main)](https://scrutinizer-ci.com/g/NdoleStudio/go-http-client/?branch=main)
6-
[![Go Report Card](https://goreportcard.com/badge/github.com/NdoleStudio/go-http-client)](https://goreportcard.com/report/github.com/NdoleStudio/go-http-client)
7-
[![GitHub contributors](https://img.shields.io/github/contributors/NdoleStudio/go-http-client)](https://github.com/NdoleStudio/go-http-client/graphs/contributors)
8-
[![GitHub license](https://img.shields.io/github/license/NdoleStudio/go-http-client?color=brightgreen)](https://github.com/NdoleStudio/go-http-client/blob/master/LICENSE)
9-
[![PkgGoDev](https://pkg.go.dev/badge/github.com/NdoleStudio/go-http-client)](https://pkg.go.dev/github.com/NdoleStudio/go-http-client)
3+
[![Build](https://github.com/NdoleStudio/neero-go/actions/workflows/main.yml/badge.svg)](https://github.com/NdoleStudio/neero-go/actions/workflows/main.yml)
4+
[![codecov](https://codecov.io/gh/NdoleStudio/neero-go/branch/main/graph/badge.svg)](https://codecov.io/gh/NdoleStudio/neero-go)
5+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/NdoleStudio/neero-go/badges/quality-score.png?b=main)](https://scrutinizer-ci.com/g/NdoleStudio/neero-go/?branch=main)
6+
[![Go Report Card](https://goreportcard.com/badge/github.com/NdoleStudio/neero-go)](https://goreportcard.com/report/github.com/NdoleStudio/neero-go)
7+
[![GitHub contributors](https://img.shields.io/github/contributors/NdoleStudio/neero-go)](https://github.com/NdoleStudio/neero-go/graphs/contributors)
8+
[![GitHub license](https://img.shields.io/github/license/NdoleStudio/neero-go?color=brightgreen)](https://github.com/NdoleStudio/neero-go/blob/master/LICENSE)
9+
[![PkgGoDev](https://pkg.go.dev/badge/github.com/NdoleStudio/neero-go)](https://pkg.go.dev/github.com/NdoleStudio/neero-go)
1010

1111

12-
This package provides a generic `go` client template for an HTTP API
12+
This package provides a go API client for the Neero Payment Gateway API
1313

1414
## Installation
1515

16-
`go-http-client` is compatible with modern Go releases in module mode, with Go installed:
16+
`neero-go` is compatible with modern Go releases in module mode, with Go installed:
1717

1818
```bash
19-
go get github.com/NdoleStudio/go-http-client
19+
go get github.com/NdoleStudio/neero-go
2020
```
2121

2222
Alternatively the same can be achieved if you use `import` in a package:
2323

2424
```go
25-
import "github.com/NdoleStudio/go-http-client"
25+
import "github.com/NdoleStudio/neero-go"
2626
```
2727

2828

@@ -41,7 +41,7 @@ An instance of the client can be created using `New()`.
4141
package main
4242

4343
import (
44-
"github.com/NdoleStudio/go-http-client"
44+
"github.com/NdoleStudio/neero-go"
4545
)
4646

4747
func main() {
@@ -60,20 +60,6 @@ if err != nil {
6060
}
6161
```
6262

63-
### Status Codes
64-
65-
#### `GET /200`: OK
66-
67-
```go
68-
status, response, err := statusClient.Status.Ok(context.Background())
69-
70-
if err != nil {
71-
log.Fatal(err)
72-
}
73-
74-
log.Println(status.Description) // OK
75-
```
76-
7763
## Testing
7864

7965
You can run the unit tests for this client from the root directory using the command below:

go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
module github.com/NdoleStudio/go-http-client
1+
module github.com/NdoleStudio/neero-go
22

3-
go 1.17
3+
go 1.24
44

5-
require github.com/stretchr/testify v1.7.0
5+
require github.com/stretchr/testify v1.7.5
66

77
require (
8-
github.com/davecgh/go-spew v1.1.0 // indirect
8+
github.com/davecgh/go-spew v1.1.1 // indirect
99
github.com/pmezard/go-difflib v1.0.0 // indirect
10-
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
10+
gopkg.in/yaml.v3 v3.0.1 // indirect
1111
)

go.sum

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
21
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
2+
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
3+
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
34
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
45
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
56
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
6-
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
7-
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
7+
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
8+
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
9+
github.com/stretchr/testify v1.7.5 h1:s5PTfem8p8EbKQOctVV53k6jCJt3UX4IEJzwh+C324Q=
10+
github.com/stretchr/testify v1.7.5/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
811
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
912
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=
1113
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
14+
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
15+
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

status_service_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/NdoleStudio/go-http-client/internal/helpers"
9+
"github.com/NdoleStudio/neero-go/internal/helpers"
1010
"github.com/stretchr/testify/assert"
1111
)
1212

0 commit comments

Comments
 (0)