goderive
goderive copied to clipboard
Derives and generates mundane golang functions that you do not want to maintain yourself
Like the title reads. When generating a struct containing a time.Time field I get this use of un-exported, e.g. `time.zone`: ```go func deriveDeepCopy_15(dst, src *time.Location) { src_v := reflect.Indirect(reflect.ValueOf(src)) dst_v...
For example ```go deriveEqual(T, T, func(A, A) bool, func(B, B) bool) bool ``` , where T contains a field with type A and B
I like this project very much, I hope the author can produce an release version
```go type A struct { B *B } type B struct { A *A } func (a *A) Clone() *A { a1 := &A{B: &B{}} a1.B.A = a1 tp :=...
Partially resolves #47
Some plugins might need to pass down the context to functions that execute concurrently.
Study https://github.com/google/go-cmp/ At least check out the test cases
Unmarshal takes two arguments of which one is a return type. So it should still be possible to compose it without the user making a special function. ```go func getUsername(u...
https://github.com/ulule/deepcopier https://github.com/jinzhu/copier
We open a file and defer to Close it. We typically don't check the Close error, because we are lazy. Is there some way that goderive can make sure we...