Skip to content

Instantly share code, notes, and snippets.

@gardenmwm
Created September 22, 2014 19:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gardenmwm/220f5fa3a1410b543937 to your computer and use it in GitHub Desktop.
Save gardenmwm/220f5fa3a1410b543937 to your computer and use it in GitHub Desktop.
142 func grokline(match grok.Match) map[string][]string {
143 fields := make(map[string][]string)
144 defer func() {
145 if e:= recover(); e!= nil {
146 fmt.Println("Recovering",e)
147 }
148 }()
149 panic("Panicing")
150 match.Captures()
151 return fields
152 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment