utils

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Black   = "\033[1;30m%s\033[0m"
	Red     = "\033[1;31m%s\033[0m"
	Green   = "\033[1;32m%s\033[0m"
	Yellow  = "\033[1;33m%s\033[0m"
	Blue    = "\033[1;34m%s\033[0m"
	Magenta = "\033[1;35m%s\033[0m"
	Cyan    = "\033[1;36m%s\033[0m"
	White   = "\033[1;37m%s\033[0m"
)

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(err error)

func ReadJsonFile

func ReadJsonFile(filePath string, value interface{}) error

func SaveJsonFile

func SaveJsonFile(filePath string, value interface{}) error

func UniqueStringSlice

func UniqueStringSlice(s []string) []string

Types

type ByCreationTime

type ByCreationTime []os.FileInfo

func (ByCreationTime) Len

func (fis ByCreationTime) Len() int

func (ByCreationTime) Less

func (fis ByCreationTime) Less(i, j int) bool

func (ByCreationTime) Swap

func (fis ByCreationTime) Swap(i, j int)

type ByModTime

type ByModTime []os.FileInfo

func (ByModTime) Len

func (fis ByModTime) Len() int

func (ByModTime) Less

func (fis ByModTime) Less(i, j int) bool

func (ByModTime) Swap

func (fis ByModTime) Swap(i, j int)

type ByName

type ByName []os.FileInfo

func (ByName) Len

func (fis ByName) Len() int

func (ByName) Less

func (fis ByName) Less(i, j int) bool

func (ByName) Swap

func (fis ByName) Swap(i, j int)

Jump to

Keyboard shortcuts

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