copystruct code generator copystruct is a simple Go code generator that copies a selection of Go structs from one source package into a target file. Usage copystruct <package> <output-file> <Struct1>,<Struct2>,... See examples for more details.