util

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigDir added in v1.0.3

func GetConfigDir() string

GetConfigDir get config directory , default is ~/.zcn/

func GetHomeDir added in v1.0.3

func GetHomeDir() string

GetHomeDir Find home directory.

func PrintJSON added in v1.0.3

func PrintJSON(v interface{})

func SetConfigDir added in v1.4.0

func SetConfigDir(dir string) string

func SplitArgs added in v1.0.3

func SplitArgs(args string) []string

SplitArgs splt args into slice, and remove if item is empty

func WriteTable

func WriteTable(writer io.Writer, header []string, footer []string, data [][]string)

WriteTable - Writes string data as a table

Types

This section is empty.

Jump to

Keyboard shortcuts

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