Comments (2)
func idstring(v interface{}) string {
switch v.(type) {
case string:
return v.(string)
case int:
return strconv.Itoa(v.(int))
default:
return ""
}
}
why did you avoid to add more types to the function? seems like the problem
from diff.
Thanks for raising the issue!
This should now be fixed on master.
from diff.
Related Issues (20)
- no differences reported for maps where values are empty structs
- Support for adding equal values for a changelog HOT 2
- run this test ,find panic HOT 2
- Slice ordering can't be disabled for []map[string]interface{} HOT 1
- Patching pointer values HOT 2
- Type lost in serialization HOT 3
- call of reflect.Value.Type on zero Value HOT 1
- Show entire struct data in From/To even though it's only partially updated HOT 3
- net.IP comparable as String. HOT 2
- option for ignoring unexported fields HOT 3
- Patch failing for byte slices when patching onto struct with nil destination
- Patching slice back to empty slice returns patchLog.Applied() to be false
- Changelog Serialization - Interface issue HOT 1
- EOL pkg found in go mod HOT 1
- Append/Update only HOT 1
- TestDiff/mixed-slice-map fails randomly HOT 1
- Obscure Tag
- Go language version is very old.
- When Bool type = false, is missing from Type:create
- Bug: embeded structs diffs are not detected HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diff.