Fix indentation after removed fields, reverted imports, updated test

This commit is contained in:
Unknown 2019-04-12 15:46:24 -06:00
parent 33f49b1830
commit 5fb934ca7a
8 changed files with 9 additions and 9 deletions

View File

@ -75,7 +75,7 @@ import (
"html"
"net/http"
"github.com/davecgh/go-spew/spew"
"github.com/coreyog/go-spew/spew"
)
func handler(w http.ResponseWriter, r *http.Request) {

View File

@ -21,7 +21,7 @@ import (
"reflect"
"testing"
"github.com/davecgh/go-spew/spew"
"github.com/coreyog/go-spew/spew"
)
// custom type to test Stinger interface on non-pointer receiver.

View File

@ -413,12 +413,12 @@ func (d *dumpState) dump(v reflect.Value) {
vt := v.Type()
numFields := v.NumField()
for i := 0; i < numFields; i++ {
d.indent()
vtf := vt.Field(i)
tag := vtf.Tag.Get("spew")
if tag == "-" {
continue
}
d.indent()
d.w.Write([]byte(vtf.Name))
d.w.Write(colonSpaceBytes)
d.ignoreNextIndent = true

View File

@ -67,7 +67,7 @@ import (
"testing"
"unsafe"
"github.com/davecgh/go-spew/spew"
"github.com/coreyog/go-spew/spew"
)
// dumpTest is used to describe a test to be performed against the Dump method.

View File

@ -26,7 +26,7 @@ package spew_test
import (
"fmt"
"github.com/davecgh/go-spew/spew/testdata"
"github.com/coreyog/go-spew/spew/testdata"
)
func addCgoDumpTests() {

View File

@ -19,7 +19,7 @@ package spew_test
import (
"fmt"
"github.com/davecgh/go-spew/spew"
"github.com/coreyog/go-spew/spew"
)
type Flag int

View File

@ -72,7 +72,7 @@ import (
"testing"
"unsafe"
"github.com/davecgh/go-spew/spew"
"github.com/coreyog/go-spew/spew"
)
// formatterTest is used to describe a test to be performed against NewFormatter.

View File

@ -23,7 +23,7 @@ import (
"os"
"testing"
"github.com/davecgh/go-spew/spew"
"github.com/coreyog/go-spew/spew"
)
// spewFunc is used to identify which public function of the spew package or