Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtdStruct ¶
copy value from src to dest, the dest must be struct
func ParseStruct ¶
copy value from src to dest, struct must be struct
Types ¶
type Setter ¶
type Setter interface { // set field value by name Set(name string, value reflect.Value) (ok bool) // get all fields name Fields() []string }
value setter
type StrGetFunc ¶
GetFunc is a func for getting string value by name
type StructValue ¶
StructValue is value of struct
func (StructValue) Fields ¶
func (s StructValue) Fields() []string
Fields() get fields name slice of a struct
Click to show internal directories.
Click to hide internal directories.