Documentation ¶
Index ¶
- func EnsureDir(fileName string) bool
- func ErrorLog(err error)
- func FileExists(filePath string) bool
- func GPFiles(p string) (s []string)
- func GetIP(s string) (ip, port string)
- func GetJSON(completeURL string) (interface{}, error)
- func InsertFloat(i interface{}) (f float64)
- func InsertString(s string, i interface{}) string
- func InsertStringInSlice(s []string, i interface{}) []string
- func InsertStringSlice(s []string, i interface{}) []string
- func MakeSlug(text string) string
- func SHA384(filename string) string
- func Truncate(s string, l int) string
- type Endpoint
- type Images
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureDir ¶
EnsureDir checks a file could be written to a path, creates the directories as needed
func InsertFloat ¶
func InsertFloat(i interface{}) (f float64)
func InsertString ¶
func InsertStringInSlice ¶
func InsertStringSlice ¶
func MakeSlug ¶
MakeSlug slugifies a string. The result will only contain lowercase letters, digits and dashes. It will not begin or end with a dash, and it will not contain runs of multiple dashes.
It is NOT forced into being ASCII, but may contain any Unicode characters, with the above restrictions.
Types ¶
type Endpoint ¶
Endpoint is the contact details for a JSONRPC endpoint
func (*Endpoint) MakeRequest ¶
MakeRequest queries a JSONRPC endpoint and returns a map of the response
Click to show internal directories.
Click to hide internal directories.