service

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: May 6, 2016 License: MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendLine

func AppendLine(line, path string) error

AppendLine append lines to file

func CalculateLines

func CalculateLines(path string) (int64, error)

CalculateLines return count of lines

func CheckArgs

func CheckArgs(args_length, arg_index int) error

CheckArgs check key value

func CheckError

func CheckError(err error)

CheckError check error

func CheckFile

func CheckFile(file string) error

CheckFile check is file or directory exist

func GetHashFvn

func GetHashFvn(s string) uint32

GetHashFvn return uint32 fnv hash

func GetHashFvn64

func GetHashFvn64(s string) uint64

GetHashFvn return uint64 fnv hash

func ReadLine

func ReadLine(path string) ([]string, error)

ReadLine read file line by line

func SearchFilesInDir

func SearchFilesInDir(file_ext, path string) ([]string, error)

SearchFilesInDir return list of files in directory by extension

func Usage

func Usage()

Usage menu

func WriteLine

func WriteLine(lines []string, path string) error

WriteLine write file line by line

Types

This section is empty.

Jump to

Keyboard shortcuts

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