Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lookup ¶
Example ¶
package main import ( "fmt" "go.llib.dev/frameless/port/crud/extid" ) type Entity struct { ID string `ext:"id"` } func main() { ent := Entity{} _, ok := extid.Lookup[string](ent) fmt.Println(`found:`, ok) // false ent.ID = `42` id, ok := extid.Lookup[string](ent) fmt.Println(`found:`, ok) // true fmt.Println(`id value:`, id) // "42" }
func RegisterType ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.