deep-copy icon indicating copy to clipboard operation
deep-copy copied to clipboard

Deep copy generator

Results 11 deep-copy issues
Sort by recently updated
recently updated
newest added

Some lint fixes and adding an initial assignment to get primitives copied over. With code I was working with some values were still empty. Tested on the struct I was...

i've just downloaded github.com/globusdigital/deep-copy v0.5.4 trying to generate code for a simple type, it worked as expected. so sanity check is fine. however, my real code has a complex graph...

needs_information

It is considered bad code when method receiver name does not match existing name. ie. `func(f Foo)` vs `func(o Foo)`.

* [Provide flag for receiver name · Issue #22 · globusdigital/deep-copy](https://github.com/globusdigital/deep-copy/issues/22) This PR adds an option `--reuse-receiver` to match receiver names with existing ones. original PR [Reuse receiver names by...

When you try to deep-copy the follwing code ``` package main type s3 struct { Y int Z int } type s2 struct { X int String *byte Ps3 *s3...

``` runtime: VirtualAlloc of 98304 bytes failed with errno=1455 fatal error: out of memory runtime stack: runtime.throw({0x104848f?, 0xc402a00000?}) C:/Program Files/Go/src/runtime/panic.go:1047 +0x65 fp=0x1dbe3ff6e0 sp=0x1dbe3ff6b0 pc=0xdf71c5 runtime.sysUsedOS(0xc4029fe000, 0x18000) C:/Program Files/Go/src/runtime/mem_windows.go:83 +0x1c9 fp=0x1dbe3ff740...

This is a great project, it's almost working :D, but I wonder whether there is a chance you could also implement "deep-equals" as well, since that is used with deep...

enhancement

Just food for thought about implementing generics for comparable types to simplify reflection if possible. comparable is now a built-in interface so it should be fairly easy to check via...

`Error generating deep copy method: generating file content: error formatting source: 26:44: missing ',' in argument list (and 4 more errors)`

- bump go version to 1.25.0 - update x mods - update actions/checkout, actions/setup-go to latest