Capturing anything but :
using @~ failed on (
#407
Answered
by
alecthomas
ethanyzhang
asked this question in
Q&A
-
Hello! I have a ColumnHandle that I wanted to parse in this format:
An example could be:
I defined my struct like: type HiveColumnHandle struct {
ColumnName string `parser:"@Ident ':'"`
DataType string `parser:"@~':' ':'"`
ColumnIndex int `parser:"@Int"`
} I was hoping by specifying Could you help shed some light what is going wrong here? Thanks a lot!! |
Beta Was this translation helpful? Give feedback.
Answered by
alecthomas
May 14, 2024
Replies: 1 comment
-
Almost there, you're just missing a repetition: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ethanyzhang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Almost there, you're just missing a repetition:
parser:"@(~':')+ ':'"