edgard / goutil

Misc auxiliary utility functions for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PACKAGE DOCUMENTATION

package goutil
    import "github.com/edgard/goutil"


FUNCTIONS

func DiffInStringSlice(slice1 []string, slice2 []string) []string
    DiffInStringSlice returns the difference between string slices

func IsDir(path string) bool
    IsDir checks if directory exists and is a directory

func MoveFile(src string, dst string) error
    MoveFile copies and delete file from original location

func StringCap(s string, length int) string
    StringCap limits string to number or characters

func StringInSlice(s string, slice []string) bool
    StringInSlice checks if string is in slice


About

Misc auxiliary utility functions for Go

License:Creative Commons Zero v1.0 Universal


Languages

Language:Go 100.0%