Rule engine implementation in Golang