go-restructure icon indicating copy to clipboard operation
go-restructure copied to clipboard

Match regular expressions into struct fields

Results 7 go-restructure issues
Sort by recently updated
recently updated
newest added

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:"$"`...

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...