Skip to content

Commit e575e04

Browse files
authored
Fix mod (#10)
1 parent 3f61172 commit e575e04

9 files changed

+19
-17
lines changed

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Tree
1+
# go-tree
22

33
[![GoDoc](https://godoc.org/github.com/johnfercher/tree?status.svg)](https://godoc.org/github.com/johnfercher/tree)
44
[![Go Report Card](https://goreportcard.com/badge/github.com/johnfercher/tree)](https://goreportcard.com/report/github.com/johnfercher/tree)
@@ -13,20 +13,20 @@ A generic unbalanced tree implementation, where you can define which node will b
1313
* With `go get`:
1414

1515
```bash
16-
go get -u github.com/johnfercher/tree
16+
go get -u github.com/johnfercher/go-tree
1717
```
1818

1919
## Contributing
2020

21-
| Command | Description | Dependencies |
22-
|-----------------|---------------------------------------------------|---------------------------------------------------------------|
23-
| `make build` | Build project | `go` |
24-
| `make test` | Run unit tests | `go` |
25-
| `make fmt` | Format files | `gofmt`, `gofumpt` and `goimports` |
26-
| `make lint` | Check files | `golangci-lint` and `goreportcard-cli` |
21+
| Command | Description | Dependencies |
22+
|-----------------|--------------------------------------------------|---------------------------------------------------------------|
23+
| `make build` | Build project | `go` |
24+
| `make test` | Run unit tests | `go` |
25+
| `make fmt` | Format files | `gofmt`, `gofumpt` and `goimports` |
26+
| `make lint` | Check files | `golangci-lint` and `goreportcard-cli` |
2727
| `make dod` | (Definition of Done) Format files and check files | Same as `make build`, `make test`, `make fmt` and `make lint` |
28-
| `make install` | Install all dependencies | `go`, `curl` and `git` |
29-
| `make examples` | Run all examples | `go` |
28+
| `make install` | Install all dependencies | `go`, `curl` and `git` |
29+
| `make examples` | Run all examples | `go` |
3030

3131
## Features
3232
### Node

cmd/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"fmt"
55

6-
"github.com/johnfercher/tree/pkg/tree"
6+
"github.com/johnfercher/go-tree/tree"
77
)
88

99
// nolint:gomnd,gocritic

go.mod

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
module github.com/johnfercher/tree
1+
module github.com/johnfercher/go-tree
22

3-
go 1.21.0
3+
go 1.21.1
4+
5+
require github.com/stretchr/testify v1.8.4
46

57
require (
68
github.com/davecgh/go-spew v1.1.1 // indirect
79
github.com/pmezard/go-difflib v1.0.0 // indirect
8-
github.com/stretchr/testify v1.8.4 // indirect
910
gopkg.in/yaml.v3 v3.0.1 // indirect
1011
)

go.sum

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
44
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
55
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
66
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
7+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
78
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
89
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
910
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

pkg/tree/example_test.go tree/example_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package tree_test
33
import (
44
"fmt"
55

6-
"github.com/johnfercher/tree/pkg/tree"
6+
"github.com/johnfercher/go-tree/tree"
77
)
88

99
// ExampleNew demonstrates how to create tree.

pkg/tree/node.go tree/node.go

File renamed without changes.

pkg/tree/node_test.go tree/node_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"testing"
66

7-
"github.com/johnfercher/tree/pkg/tree"
7+
"github.com/johnfercher/go-tree/tree"
88

99
"github.com/stretchr/testify/assert"
1010
)

pkg/tree/tree.go tree/tree.go

File renamed without changes.

pkg/tree/tree_test.go tree/tree_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"testing"
66

7-
"github.com/johnfercher/tree/pkg/tree"
7+
"github.com/johnfercher/go-tree/tree"
88
"github.com/stretchr/testify/assert"
99
)
1010

0 commit comments

Comments
 (0)