utils

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearBOM added in v1.0.16

func ClearBOM(byt []byte) []byte

func ClearString

func ClearString(str string) string

func GenerateWrapperRegexp added in v1.0.6

func GenerateWrapperRegexp(
	wrapperStart string,
	wrapperEnd string,
	wrapperGroup string,
	wrapperLineBreak bool,
) (output string)

func IsArray added in v1.0.20

func IsArray(input interface{}) bool

func IsJsonArray added in v1.0.16

func IsJsonArray(content string) bool

func IsJsonObject added in v1.0.16

func IsJsonObject(content string) bool

func MarshalUnmarshal added in v1.0.21

func MarshalUnmarshal(input interface{}, output interface{}) (interface{}, error)

func ReadFileContent

func ReadFileContent(filePath string) (string, error)

func RegexpEscapeString added in v1.0.17

func RegexpEscapeString(str string) string

func WriteFileContent

func WriteFileContent(path string, content string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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