utils

package
v0.0.0-...-448f349 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MapExpr = map[string]string{
		"=":  "=",
		"~~": "~=",
		"<>": "!~=",
		"!=": "!~=",
		"<":  "<",
		"<=": "<=",
		">":  ">",
		">=": ">=",
	}
)

Functions

func CompareSlices

func CompareSlices(a, b []string) bool

CompareSlices - compares to slices, return false if they are not equal, true if they are.

func FetchData

func FetchData(urlString string) string

FetchData, fetch json data from api

func ParseFromClause

func ParseFromClause(qStr string) string

ParseFromClause - Parse from value to get field from field

func ParseSelectClause

func ParseSelectClause(qStr string) []string

ParseSelectClause - Parse select string to get field value

func ParseWhereClause

func ParseWhereClause(qStr string) string

ParseWhereClause - Parse where to get where field

func ReverseString

func ReverseString(input string) string

ReverseString - reverses a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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