rule

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2022 License: CC0-1.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RISK       int = 0
	FIRST_RULE int = 1
)

Variables

This section is empty.

Functions

func Fire

func Fire(str string, jsonString string) (int, []string, error)

func FireFirstRule

func FireFirstRule(str string, jsonString string) (string, error)

Types

type Politics

type Politics struct {
	Name  string `json:"name"`
	Rules []Rule `json:"rules"`
}

type Rule

type Rule struct {
	Name  string `json:"name"`
	Point int    `json:"point"`
	Code  string `json:"code"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL