Every line of 'golang anonymous function' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Go code is secure.
260 func (s *state) anonymousFunction() comb.Parser { 261 return s.App(func(x interface{}) interface{} { 262 xs := x.([]interface{}) 263 return ast.NewAnonymousFunction(xs[1].([]interface{})[0].(ast.Signature), nil, xs[2]) 264 }, s.list(s.strippedString("\\"), s.list(s.signature()), s.expression())) 265 }
9 func fn2(x int) bool { 10 println(x) 11 if x > 10 { 12 return true 13 } 14 return fn2(x + 1) 15 }