go-restructure
go-restructure copied to clipboard
Match regular expressions into struct fields
Hello, Was wondering if it's possible to extract int values, here is my code that failed. ```go type Dummy struct { _ struct{} `regexp:"^"` DummyInt int `regexp:"\\d"` _ struct{} `regexp:"$"`...
See updates to README.md
Make it possible to write a field `Foo []*SomeOtherStruct "*"` and get repetitions in the slice.
It should be possible to write a field `Foo *string "(abc)?"` and have it wind up `nil` if the group did not match.
No so much a feature request, but perhaps an interesting direction. From a struct tag, generate a ragel machine definition that matches a []byte and stuffs the values into a...