Documentation ¶
Index ¶
- func Bash(command string) string
- func ChkPaternity(owner string, child string) bool
- func ChkPerms(selected_object string, uid int, gid int) bool
- func Cmd(cmd string, args []string) (string, error)
- func FileLockCheck(str string, list []string) bool
- func GetCLI(key string) map[string]string
- func Getusers(username string, data map[string]map[string]string, db *sql.DB) map[string]map[string]string
- func IndexOfString(str string, list []string) int
- func IsInterface(ip_addr string) bool
- func LastResortSanitize(str string) string
- func MD5SUM(path string) string
- func MkToken() string
- func MySQL() (*sql.DB, error)
- func Query(ctx *macaron.Context, name string) string
- func RemoveInArray(str string, list []string) []string
- func SHSanitize(str string) string
- func Sudo(username string, ctx *macaron.Context)
- func SurfGet(siteurl string) string
- func SurfPost(siteurl string, postdata string) string
- type API_function
- type Config
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChkPaternity ¶
func FileLockCheck ¶
func IndexOfString ¶
func IsInterface ¶
func LastResortSanitize ¶
func MySQL ¶
Example taken from here: https://astaxie.gitbooks.io/build-web-application-with-golang/content/en/05.2.html
func RemoveInArray ¶
func SHSanitize ¶
Types ¶
type API_function ¶
type API_function func(ctx *macaron.Context) string
Click to show internal directories.
Click to hide internal directories.