Documentation ¶
Index ¶
- Constants
- Variables
- func ExistsString(array []string, entry string) bool
- func GetGOPATH() string
- func HTTPResponse(status int, statusMessage string, body string, title string, ...)
- func HTTPResponseArr(status int, statusMessage string, body string, title string, ...)
- func HashString(toHash string) string
- func IsSet(vars ...string) bool
- func IsSubset(first, second []string) bool
- func NonNull(thing string) bool
- func NumResults(db *sql.DB, query string, args ...interface{}) (int, error)
- func ParseDate(date string) (time.Time, error)
- func ParseDateTime(datetime string) (time.Time, error)
Constants ¶
View Source
const APIURL = "https://mynsb.nsbvisions.com"
Variables ¶
View Source
var TIMEZONE *time.Location
Functions ¶
func ExistsString ¶
ExistsString takes an array and an entry string and determines if that entry string resides in that array
func HTTPResponse ¶
func HTTPResponse(status int, statusMessage string, body string, title string, w http.ResponseWriter)
HTTPResponse function for returning array based responses
func HTTPResponseArr ¶
func HTTPResponseArr(status int, statusMessage string, body string, title string, w http.ResponseWriter)
HTTPResponse function for returning object based responses
func HashString ¶
HashString takes an input string and hashes it with the sha256 algorithm, unfortunately not the one you would see in your hashtables ;) too big :p
func IsSet ¶
IsSet behaves much like php's isset and takes a list of variables and determins if they are null
func IsSubset ¶
IsSubset takes two arrays of strings and determines if the second array is a subset of the first
func NumResults ¶
NumResults takes a db and a query and determines how many results were returned from that query
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.