Documentation
¶
Index ¶
- func CanWrite(filepath string) (bool, error)
- func CheckDuplicate(path string, info os.FileInfo, err error) error
- func CheckIfExists(fileName string) bool
- func Compress(inFile string, ext string)
- func Contains(s []string, str string) bool
- func ConvertToString(inFile string) string
- func Copy(fileName string)
- func CurrentPath(fileName string) string
- func Decompress(inFile string)
- func DetectContentType(fileName string) string
- func File2lines(filePath string) ([]string, error)
- func FindPositionLineText(path string, text string) int
- func GetHashMD4(fileName string)
- func GetHashMD5(fileName string)
- func GetHashSHA(fileName string)
- func GetInfo(fileName string)
- func GetNumberLines(path string) int
- func GetPermission(fileName string)
- func GetStringLineByIndex(path string, index int) string
- func GetStringLinesByFile(path string) []string
- func InsertStringToFile(path, str string, index int) error
- func LinesFromReader(r io.Reader) ([]string, error)
- func Move(directory string, ext string)
- func New(fileName string, destination string)
- func NewScript(cmd, fileName, destination string) string
- func NewTempFile(tempFileName string, envVariable string)
- func ReadCSV(fileName string) []string
- func ReadJSON(fileName string, key interface{}) interface{}
- func ReadXML(fileName string, key interface{}) interface{}
- func RedirectLogFile(content string, nameFile string)
- func RemoveBigFile(fileName string)
- func RemoveFile(fileName string)
- func RemoveFilesByExtension(path string, ext string)
- func ReplaceText(inFile string, oldWord string, newWord string)
- func SaveCSV(fileName string, key [][]string)
- func SaveJSON(fileName string, key interface{})
- func SaveXML(fileName string, key interface{})
- func SetReadOnly(filepath string) error
- func SetWritable(filepath string) error
- func Split(fileName string)
- func UploadToURL(uri string, fileName string)
- func WhatsIsExtension(fileName []string) []string
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfExists ¶
func ConvertToString ¶
func CurrentPath ¶
func Decompress ¶
func Decompress(inFile string)
func DetectContentType ¶
Verifique o tipo de conteúdo do arquivo específicado
func File2lines ¶
func FindPositionLineText ¶
func GetHashMD4 ¶
func GetHashMD4(fileName string)
func GetHashMD5 ¶
func GetHashMD5(fileName string)
func GetHashSHA ¶
func GetHashSHA(fileName string)
func GetNumberLines ¶
func GetPermission ¶
func GetPermission(fileName string)
func GetStringLineByIndex ¶
func GetStringLinesByFile ¶
func InsertStringToFile ¶
Insert sting to n-th line of file. If you want to insert a line, append newline '\n' to the end of the string.
func NewTempFile ¶
func RedirectLogFile ¶
func RemoveBigFile ¶
func RemoveBigFile(fileName string)
func RemoveFile ¶
func RemoveFile(fileName string)
func RemoveFilesByExtension ¶
func ReplaceText ¶
func SetReadOnly ¶
func SetWritable ¶
func UploadToURL ¶
func WhatsIsExtension ¶
Types ¶
Source Files
¶
- checkFileIfExists.go
- compress.go
- configFile.go
- contentFile.go
- copyFile.go
- createFile.go
- createTemporaryFile.go
- decompress.go
- deleteFile.go
- foundPosLineWord.go
- getFile.go
- getFileExtension.go
- insertLineToFile.go
- moveFile.go
- readFile.go
- redirectLogger.go
- saveFile.go
- setFile.go
- splitFile.go
- uploadFile.go
Click to show internal directories.
Click to hide internal directories.