Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
godebug
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
godebug
Commits
ba260316
Commit
ba260316
authored
Jan 10, 2013
by
Kyle Lemons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compare unexported fields
parent
21e37b6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
pretty/public.go
pretty/public.go
+3
-2
No files found.
pretty/public.go
View file @
ba260316
...
...
@@ -53,14 +53,15 @@ func (cfg *Config) Fprint(w io.Writer, vals ...interface{}) (n int64, err error)
}
// Compare returns a string containing a line-by-line unified diff of the
// values in got and want. Compare i
gnor
es unexported fields.
// values in got and want. Compare i
nclud
es unexported fields.
//
// Each line in the output is prefixed with '+', '-', or ' ' to indicate if it
// should be added to, removed from, or is correct for the "got" value with
// respect to the "want" value.
func
Compare
(
got
,
want
interface
{})
string
{
diffOpt
:=
&
Config
{
Diffable
:
true
,
Diffable
:
true
,
IncludeUnexported
:
true
,
}
return
diff
.
Diff
(
diffOpt
.
Sprint
(
got
),
diffOpt
.
Sprint
(
want
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment