ioutils

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package ioutils provides APIs related to input and output.

Index

Constants

View Source
const CmdName string = "ubume"

CmdName is this command name.

Variables

This section is empty.

Functions

func Die

func Die(msg string)

Die exit program with message.

func Exists

func Exists(path string) bool

Exists check whether file or directory exists.

func MkDirs

func MkDirs(paths []string)

MkDirs create multiple specified directories. If the parent directory does not exist, create the parent directory as well. If an error occurs, exit command.

func Tree

func Tree(path string)

Tree display directories in the tree structure.

func WriteFile

func WriteFile(text string, path string)

WriteFile write string to file. If it can not create file, exit command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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