util

package
v0.0.0-...-262cbe7 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskForConfirmation

func AskForConfirmation(s string) bool

AskForConfirmation asks the user for confirmation before continuing

func CompareFiles

func CompareFiles(pathA string, pathB string) error

comapreFiles comapres two files at given paths

func CreateFile

func CreateFile(r Resource, name string, path string, templateString string, level int) error

CreateFile creates a file

func CreateFolders

func CreateFolders(r Resource, folders []string, path string, permissions os.FileMode, withKeep bool, level int) error

CreateFolders creates a list of folders

func KeepFolder

func KeepFolder(path string) error

KeepFolder creates a .keep file in directory to keep the folder

Types

type Resource

type Resource interface{}

Jump to

Keyboard shortcuts

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