utils

package
v0.0.0-...-7f7f88d Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSlash

func AddSlash(path string) string

AddSlash adds a trailing slash to a string path if missing

func CheckDir

func CheckDir(dir string) error

func HomeDir

func HomeDir() string

func KeyExists

func KeyExists(key string, bucket map[string]string) bool

KeyExists check if an item with key key exists in map bucket

func ParseURL

func ParseURL(uri string) (*url.URL, error)

ParseURL is a wrapper func around net/url.Parse

func ReadFile

func ReadFile(inFile string) (*os.File, error)

func RemoveAccents

func RemoveAccents(s string) string

func Sanitize

func Sanitize(s string) string

func SplitURL

func SplitURL(uri string) ([]string, error)

func UserDesktop

func UserDesktop() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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