utils

package
v0.0.0-...-44df2ee Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStdinTerminal

func IsStdinTerminal() bool

IsStdinTerminal returns true when the os.Stdin is a terminal (including cygwin/msys2 terminals)

func StringFlagWithShortName

func StringFlagWithShortName(longName, shortName, defaultValue, usage string) *string

StringFlagWithShortName 返回一个绑定了长参数名和短参数名的flag处理器

func WriteBackFile

func WriteBackFile(catalog, tocMark, fileData []byte, fileName string) error

WriteBackFile 将目录写回文件指定位置

func WriteCatalog

func WriteCatalog(data []byte, catalog, tocMark string, outputStdout bool, fileName string) error

WriteCatalog 控制目录和文件信息的写入方向

func WriteStdout

func WriteStdout(catalog, tocMark, source []byte) error

WriteStdout 将目录和文件内容写入标准输出

Types

This section is empty.

Jump to

Keyboard shortcuts

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