util

package
v0.0.0-...-813a201 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2015 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntOrNull

func IntOrNull(n int64) sql.NullInt64

IntOrNull returns properly confiigured sql.NullInt64

func SpaceDelimitedStringNotGreater

func SpaceDelimitedStringNotGreater(first, second string) bool

SpaceDelimitedStringNotGreater returns true if the first string is the same as the second string or does not contain any substring not contained in the second string (when split by space)

func StringInSlice

func StringInSlice(a string, list []string) bool

StringInSlice is a function similar to "x in y" Python construct

func StringOrNull

func StringOrNull(str string) sql.NullString

StringOrNull returns properly confiigured sql.NullString

Types

This section is empty.

Jump to

Keyboard shortcuts

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