goutil

package module
v0.0.0-...-bb05a69 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: Unlicense Imports: 8 Imported by: 0

README

goutil

Various utility libraries created as I learn Go

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Concat

func Concat(s, t string) (string, int)

func MD5

func MD5(s string) string

func PathExists

func PathExists(p string) (bool, os.FileInfo)

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 RandAlpha

func RandAlpha(n uint) string

func RandAlphaNumeric

func RandAlphaNumeric(n uint) string

func Reverse

func Reverse(s string) string

func RuneConcat

func RuneConcat(s, t string) (string, int)

func SHA1

func SHA1(s string) string

func SHA256

func SHA256(s string) string

func SizeStr

func SizeStr(bytes int64, showBytes bool) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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