Documentation ¶
Overview ¶
Example ¶
parse := Compile[struct { RawMatch Position Foo int Bar time.Time }](`(?P<Foo>[0-9]+)/(?P<Bar>[^\s]+)`) foo, err := parse("---> 42/2022-02-22T09:00:00Z <---") if err != nil { fmt.Println(err) return } fmt.Println(foo.Foo) fmt.Println(foo.Bar) fmt.Println(foo) fmt.Println(foo.Position)
Output: 42 2022-02-22 09:00:00 +0000 UTC 42/2022-02-22T09:00:00Z 5
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.