str

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendUniq

func AppendUniq(slice []string, i string) []string

AppendUniq append string to slice if it its not there yet

func CaseInsensitiveContains

func CaseInsensitiveContains(s, substr string) bool

CaseInsensitiveContains perform case-insensitive search of substr in s

func CsvToSlice

func CsvToSlice(s string) []string

CsvToSlice convert s to []string; where s is in the form of string, string, string

func IsInCSVList

func IsInCSVList(s string, term string) (found bool)

IsInCSVList find term in s, where s is in the form of "string, string,string ..."

func RefToDigit

func RefToDigit(v string) (ret int64, ok bool)

RefToDigit convert references in rules like :1 :2 :3 to 1 2 3

func TimeStampToUnix

func TimeStampToUnix(s string) (int64, error)

TimeStampToUnix converts s in RFC3339 format to epoch

Types

This section is empty.

Jump to

Keyboard shortcuts

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