Storage for structures (embedded), with the ability to search by field structure. This library is unsafe.
An example of using the Structer:
package main
import (
"github.com/claygod/structer"
)
// Main
func main() {
s := structer.New()
...
}
- Add-4 500000 4452 ns/op
- AddParallel-4 500000 3104 ns/op
- Find-4 2000000 909 ns/op
- FindParallel-4 3000000 494 ns/op
Methods:
- New - create a new storage for structures