Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

mirror implements run-time 'mirror' reflection in Go, allowing struct fields to be passed to functions by value.

License

NotificationsYou must be signed in to change notification settings

qlova/mirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mirror is a small Go package that allows passing struct fields by value with the use of a mirror.Type

varget mirror.TypevarStreetAddressstruct {NumberintStreetstringPostcodeint}//Reflect the value onto the mirror.get.Reflect(&StreetAddress)//Inspect fields by struct-value.get.Field(StreetAddress.Number).Name//"Number"get.Field(StreetAddress.Postcode).Name//"Postcode"get.Field(StreetAddress.Street).Name//"Street"

About

mirror implements run-time 'mirror' reflection in Go, allowing struct fields to be passed to functions by value.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp