Star me on GitHub

Shorthands

shorthand function example
:: type :: $bool
== eq (equal) == 1
!= ne (not equal) != 1
< lt (less than) < 1
> gt (greater than) > 1
<= le (less than or equal) <= 1
>= ge (greater than or equal) >= 1
*= contains *= “substring”
^= hasPrefix ^= “abc”
$= hasSuffix $= “xyz”
~= regex ~= “^abc.*xyz$”

Function List

  • and(v1 bool,v2 bool) bool
  • contains(elem int,list const []int) bool
  • contains(elem string,list const []string) bool
  • contains(elem uint,list const []uint) bool
  • contains(s string,substr string) bool
  • elem(list [][]byte,index int) []byte
  • elem(list []bool,index int) bool
  • elem(list []double,index int) double
  • elem(list []int,index int) int
  • elem(list []string,index int) string
  • elem(list []uint,index int) uint
  • eq(v1 []byte,v2 []byte) bool
  • eq(v1 bool,v2 bool) bool
  • eq(v1 double,v2 double) bool
  • eq(v1 int,v2 int) bool
  • eq(v1 string,v2 string) bool
  • eq(v1 uint,v2 uint) bool
  • eqFold(v1 string,v2 string) bool
  • ge(v1 []byte,v2 []byte) bool
  • ge(v1 double,v2 double) bool
  • ge(v1 int,v2 int) bool
  • ge(v1 uint,v2 uint) bool
  • gt(v1 []byte,v2 []byte) bool
  • gt(v1 double,v2 double) bool
  • gt(v1 int,v2 int) bool
  • gt(v1 uint,v2 uint) bool
  • hasPrefix(v1 string,v2 string) bool
  • hasSuffix(v1 string,v2 string) bool
  • le(v1 []byte,v2 []byte) bool
  • le(v1 double,v2 double) bool
  • le(v1 int,v2 int) bool
  • le(v1 uint,v2 uint) bool
  • length(e [][]byte) int
  • length(e []bool) int
  • length(e []byte) int
  • length(e []double) int
  • length(e []int) int
  • length(e []string) int
  • length(e []uint) int
  • length(e string) int
  • lt(v1 []byte,v2 []byte) bool
  • lt(v1 double,v2 double) bool
  • lt(v1 int,v2 int) bool
  • lt(v1 uint,v2 uint) bool
  • ne(v1 []byte,v2 []byte) bool
  • ne(v1 bool,v2 bool) bool
  • ne(v1 double,v2 double) bool
  • ne(v1 int,v2 int) bool
  • ne(v1 string,v2 string) bool
  • ne(v1 uint,v2 uint) bool
  • not(v1 bool) bool
  • now() int
  • or(v1 bool,v2 bool) bool
  • print(e [][]byte) [][]byte
  • print(e []bool) []bool
  • print(e []byte) []byte
  • print(e []double) []double
  • print(e []int) []int
  • print(e []string) []string
  • print(e []uint) []uint
  • print(e bool) bool
  • print(e double) double
  • print(e int) int
  • print(e string) string
  • print(e uint) uint
  • range(list [][]byte,first int,last int) [][]byte
  • range(list []bool,first int,last int) []bool
  • range(list []double,first int,last int) []double
  • range(list []int,first int,last int) []int
  • range(list []string,first int,last int) []string
  • range(list []uint,first int,last int) []uint
  • regex(expr const string,s string) bool
  • toLower(s string) string
  • toUpper(s string) string
  • type(e []byte) bool
  • type(e bool) bool
  • type(e double) bool
  • type(e int) bool
  • type(e string) bool
  • type(e uint) bool