goderive icon indicating copy to clipboard operation
goderive copied to clipboard

Derives and generates mundane golang functions that you do not want to maintain yourself

Results 19 goderive issues
Sort by recently updated
recently updated
newest added

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...

skill-level-advanced
effort-high

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

skill-level-advanced
effort-high

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 :=...

effort-high
skill-level-intermediate

Partially resolves #47

Some plugins might need to pass down the context to functions that execute concurrently.

skill-level-intermediate
effort-medium

Study https://github.com/google/go-cmp/ At least check out the test cases

skill-level-intermediate
effort-medium

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...

effort-low
skill-level-beginner
good first issue

https://github.com/ulule/deepcopier https://github.com/jinzhu/copier

skill-level-intermediate
effort-medium

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...

effort-medium
skill-level-beginner
good first issue