gio

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

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

Go to latest
Published: Jul 7, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppEndToFile

func AppEndToFile(destFileDir string, data string)

append string to end of the file

func AppendArrayEndToFile

func AppendArrayEndToFile(destFileDir string, datas []string)

add many new lines

func ChangeFile

func ChangeFile(templateName string, MapForReplace map[string]string)

modify a file looking for something

func Copy

func Copy(srcFileDir string, destFileDir string)

copy file with operator system

func CreateDirAll

func CreateDirAll(dir string)

func CreateFile

func CreateFile(finalPath string, data string)

Create file

func CreateFolder

func CreateFolder(dir string)

Create folder

func IsFileExist

func IsFileExist(dir string) (bool, error)

Validate file exist

func NewFileforTemplate

func NewFileforTemplate(newName string, templateName string, MapForReplace map[string]string)

Create a new file starting from a template and an array of options to replace

func ReadAndCopy

func ReadAndCopy(srcFileDir string, destFileDir string)

read file and copy to other file

func ReadFile

func ReadFile(templateName string) string

read file and return string with data

func ReplaceTextInFile

func ReplaceTextInFile(templateName string, MapForReplace map[string]string) string

replace info in file return string

Types

This section is empty.

Jump to

Keyboard shortcuts

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