Comments (3)
I think no one would export all method from package io
and copier
at the same time with this:
import . "io"
import . "copier"
And even someone are doing like this, he will get compile error!
So of course, no existing code would be break.
from copier.
That's not what I tried to say. I was saying that the destination, source
order of parameters would be more idiomatic because of the consistency with io.Copy
's parameters.
from copier.
Sorry, I didn't read you comment carefully... ;(
Yes, you are right. it would be a better to change the order.
Just did it hope won't affect any others due to the breaking change ;(
from copier.
Related Issues (20)
- 雪花id转换后变成0
- 嵌套结构造成stack overflow
- errors in copier.TypeConverters are not returned from the CopyWithOption function and values with error are not applied HOT 2
- 嵌套的指针复制,貌似是存在问题的
- nopanic Tag无效 HOT 2
- Null sql.Null* values should be copied as nil pointer destination
- source with nil pointer replacing existing pointer in destination HOT 1
- ignore field was overwritten
- 特定场景无法匹配到TypeConverter
- 在两个含有 map[string]int 的结构体复制后,新对象改动,会影响原`src`内的map HOT 2
- 如果可以的话,能否加一个json与结构体的互相转换 HOT 3
- Current status of this project HOT 3
- Option for making `copier:"must"` or `copier:"must,nopanic"` a default behavior. HOT 1
- Slice replication problem
- Next version Release? HOT 2
- 从基础类型转为sql.NullXXX类型时,转换失败。
- copy of slice doesn't replace the whole slice HOT 3
- It does not working correctly HOT 1
- Deepcopy on interface pointers not working properly
- I want to merge the data of two structures 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 copier.