Skip to content

jh9aea/struct_convert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

struct_convert

golang struct convert func

install

go get github.com/jh9aea/struct_convert

or just copy main.go

use

type aStruct struct {
	A string
	B string
}

type bStruct struct {
	B string
}

a := aStruct{A:"a", B: "b"}
b, err := Convert[bStruct](a)

About

golang struct convert func

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages