strings.Reader read so far without incrementing a variable?
what do you want to do?
you probably mean how many bytes, not strings
I'm working on that parser I talked about :D I was able to find the right closing tag and parse a whole tag with many same child tags, but it only returns the first occurrence, now I want to store its ending index, and then recall the parse to get more of the tag
what you want is an AST
I'm not going for a full parser cause I know I can't write one lool
so what exactly are you trying to do?
just a few useful functions, now I'm only able to extract the first occurred tag, my next goal is to extract slices of that tag. So here, I should call traverse again, but with the remaining data from the last traverse. So I was looking to return the last index reader has read, make a new node with the remaining data and call traverse again
what you want is a tokenizer, then your parser should produce an AST
That would be a long term goal
It’s solved by pushing init with every segment it’s mpd dash stream
Обсуждают сегодня