utils

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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