utils

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *logrus.Logger

Functions

func CheckFileIsExist

func CheckFileIsExist(filename string) bool

func CreateFile

func CreateFile(filePath string, perm fs.FileMode) bool

func FileYamlMarshalAndWrite

func FileYamlMarshalAndWrite(path string, conf interface{}) bool

func InterfaceSlice

func InterfaceSlice(slice interface{}) []interface{}

func ReadFile

func ReadFile(filePath string) ([]byte, bool)

func RemoveDuplicate added in v0.3.9

func RemoveDuplicate(s []string) []string

func UpdateFile

func UpdateFile(filePath string, fileContent []byte, perm fs.FileMode) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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