Skip to content

Commit

Permalink
update dep
Browse files Browse the repository at this point in the history
  • Loading branch information
hucansen committed Dec 14, 2022
1 parent 6ddfb95 commit 3d738ee
Show file tree
Hide file tree
Showing 8 changed files with 186 additions and 185 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: go
go_import_path: github.com/davecgh/go-spew
go_import_path: github.com/gozelle/go-spew
go:
- 1.6.x
- 1.7.x
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,28 @@ post about it

## Documentation

[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/davecgh/go-spew/spew)
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/gozelle/go-spew/spew)

Full `go doc` style documentation for the project can be viewed online without
installing this package by using the excellent GoDoc site here:
http://godoc.org/github.com/davecgh/go-spew/spew
http://godoc.org/github.com/gozelle/go-spew/spew

You can also view the documentation locally once the package is installed with
the `godoc` tool by running `godoc -http=":6060"` and pointing your browser to
http://localhost:6060/pkg/github.com/davecgh/go-spew/spew
http://localhost:6060/pkg/github.com/gozelle/go-spew/spew

## Installation

```bash
$ go get -u github.com/davecgh/go-spew/spew
$ go get -u github.com/gozelle/go-spew/spew
```

## Quick Start

Add this import line to the file you're working in:

```Go
import "github.com/davecgh/go-spew/spew"
import "github.com/gozelle/go-spew/spew"
```

To dump a variable with full newlines, indentation, type, and pointer
Expand Down Expand Up @@ -75,7 +75,7 @@ import (
"html"
"net/http"

"github.com/davecgh/go-spew/spew"
"github.com/gozelle/go-spew/spew"
)

func handler(w http.ResponseWriter, r *http.Request) {
Expand Down
12 changes: 6 additions & 6 deletions spew/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"fmt"
"reflect"
"testing"

"github.com/davecgh/go-spew/spew"
"github.com/gozelle/go-spew/spew"
)

// custom type to test Stinger interface on non-pointer receiver.
Expand Down Expand Up @@ -139,7 +139,7 @@ func helpTestSortValues(tests []sortTestCase, cs *spew.ConfigState, t *testing.T
}
return interfaces
}

for _, test := range tests {
spew.SortValues(test.input, cs)
// reflect.DeepEqual cannot really make sense of reflect.Value,
Expand All @@ -158,7 +158,7 @@ func helpTestSortValues(tests []sortTestCase, cs *spew.ConfigState, t *testing.T
// works as intended.
func TestSortValues(t *testing.T) {
v := reflect.ValueOf

a := v("a")
b := v("b")
c := v("c")
Expand Down Expand Up @@ -232,7 +232,7 @@ func TestSortValues(t *testing.T) {
// based sorting works as intended when using string methods.
func TestSortValuesWithMethods(t *testing.T) {
v := reflect.ValueOf

a := v("a")
b := v("b")
c := v("c")
Expand Down Expand Up @@ -267,7 +267,7 @@ func TestSortValuesWithMethods(t *testing.T) {
// based sorting works as intended when using spew to stringify keys.
func TestSortValuesWithSpew(t *testing.T) {
v := reflect.ValueOf

a := v("a")
b := v("b")
c := v("c")
Expand Down
Loading

0 comments on commit 3d738ee

Please sign in to comment.