utils

package
v0.0.0-...-47c7dcb Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const UTF8BOM string = "\xEF\xBB\xBF"

Variables

This section is empty.

Functions

func AliyunCreateClientConfig

func AliyunCreateClientConfig(accessKeyId, accessKeySecret, regionId, endpoint *string) *openapi.Config

func BOMAwareCSVReader

func BOMAwareCSVReader(reader io.Reader) *csv.Reader

func CreateCSVFile

func CreateCSVFile(filePath string) (f *os.File, err error)

func DataToMap

func DataToMap(data *[][]string) (records *[]map[string]string, err error)

func GetXlsxRows

func GetXlsxRows(f *excelize.File, sheet string) (*[][]string, error)

func GracefulExit

func GracefulExit()

func MaxFloat64

func MaxFloat64(a []float64) float64

func MinFloat64

func MinFloat64(a []float64) float64

func StringToBool

func StringToBool(str string) bool

func StringToInt

func StringToInt(str string) int

func TencentCreateClientConfig

func TencentCreateClientConfig(secretId, secretKey, endpoint string) (*common.Credential, *profile.ClientProfile)

func WriteCSVFile

func WriteCSVFile(f *os.File, data *[][]string) error

func XlsxDataToMap

func XlsxDataToMap(data *[][]string) (records *[]map[string]string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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