Implement rule matching for a couple of basic rule types.
This commit is contained in:
parent
5b3b70da14
commit
970b3ded6e
3 changed files with 64 additions and 15 deletions
|
@ -9,6 +9,10 @@ func Log(msg string) {
|
|||
fmt.Println(msg)
|
||||
}
|
||||
|
||||
func Logf(msg string, params ...interface{}) {
|
||||
fmt.Printf(msg, params...)
|
||||
}
|
||||
|
||||
func LogError(err error, msg string) {
|
||||
if msg == "" {
|
||||
fmt.Printf("%s\n", err.Error())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue