filesys

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 7 Imported by: 0

README

go-filesys

Utility functions for working with filesystems

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(src string) (string, error)

Abs ...

func Checksum

func Checksum(path string, hash hash.Hash) (string, error)

Checksum a file

func CommonSuffix

func CommonSuffix(dst, src string) string

CommonSuffix ...

func CreateFile

func CreateFile(path string) (*os.File, error)

CreateFile ... TODO: write tests and make it create directories too

func JoinSlugs

func JoinSlugs(slugs ...string) string

JoinSlugs ... TODO: write tests

func SplitSlugs

func SplitSlugs(path string) []string

SplitSlugs ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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