Documentation
¶
Overview ¶
Package goutil provides commonly used convenience functions for manipulating certain data types and also provides reusable type-generic algorithms
file: file.go desc: routines for interacting with the file system auth: ardnew
Package goutil provides commonly used convenience functions for manipulating certain data types and also provides reusable type-generic algorithms
file: string.go desc: routines for manipulating strings auth: ardnew
Index ¶
- func Concat(s, t string) (string, int)
- func MD5(s string) string
- func PathExists(p string) (bool, os.FileInfo)
- func RandAlpha(n uint) string
- func RandAlphaNumeric(n uint) string
- func Reverse(s string) string
- func RuneConcat(s, t string) (string, int)
- func SHA1(s string) string
- func SHA256(s string) string
- func SizeStr(bytes int64, showBytes bool) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PathExists ¶
function PathExists() determines if a file or directory -can be verified- to exist at the given path under the effective permissions of this running process. if it exists, a true value and the associated stat struct is returned. otherwise, a false value and a nil stat struct is returned.
N.B., this function provides no way of distinguishing an existing file with
insufficient permissions and a non-existing file! in both cases, you
will receive a false return because in both cases there does not exist
a file that can be referenced at the given path.
func RandAlphaNumeric ¶
func RuneConcat ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.