{"modulePath":"github.com/domechn/expr","version":"v1.16.11","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package operator\n\n## Variables\n\n```go\nvar Binary = map[string]Operator{\n\t\"|\":          {0, Left},\n\t\"or\":         {10, Left},\n\t\"||\":         {10, Left},\n\t\"and\":        {15, Left},\n\t\"\u0026\u0026\":         {15, Left},\n\t\"==\":         {20, Left},\n\t\"!=\":         {20, Left},\n\t\"\u003c\":          {20, Left},\n\t\"\u003e\":          {20, Left},\n\t\"\u003e=\":         {20, Left},\n\t\"\u003c=\":         {20, Left},\n\t\"in\":         {20, Left},\n\t\"matches\":    {20, Left},\n\t\"contains\":   {20, Left},\n\t\"startsWith\": {20, Left},\n\t\"endsWith\":   {20, Left},\n\t\"..\":         {25, Left},\n\t\"+\":          {30, Left},\n\t\"-\":          {30, Left},\n\t\"*\":          {60, Left},\n\t\"/\":          {60, Left},\n\t\"%\":          {60, Left},\n\t\"**\":         {100, Right},\n\t\"^\":          {100, Right},\n\t\"??\":         {500, Left},\n}\n```\n\n```go\nvar Unary = map[string]Operator{\n\t\"not\": {50, Left},\n\t\"!\":   {50, Left},\n\t\"-\":   {90, Left},\n\t\"+\":   {90, Left},\n}\n```\n\n## Functions\n\n```go\nfunc AllowedNegateSuffix(op string) bool\n```\n\n```go\nfunc IsBoolean(op string) bool\n```\n\n```go\nfunc IsComparison(op string) bool\n```\n\n```go\nfunc Less(a, b string) bool\n```\n\n## Types\n\n```go\ntype Associativity int\n```\n\n```go\nconst (\n\tLeft Associativity = iota + 1\n\tRight\n)\n```\n\n```go\ntype Operator struct {\n\tPrecedence    int\n\tAssociativity Associativity\n}\n```\n\n","path":"github.com/domechn/expr/parser/operator","name":"operator","synopsis":"","isRedistributable":true}
