util

package
v0.0.0-...-dc65a0e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(in string, dicts []*da.Dict) (string, error)

func DictConvert

func DictConvert(in []string, m map[string]string) ([]string, error)

func FetchURL

func FetchURL(url string) []byte

FetchURL gets the content of url

func StringIs

func StringIs(s string, f is) bool

func UrlToZipContent

func UrlToZipContent(srcUrl string) string

UrlToZipConent gets the content of srcUrl and returns the compressed content

func WriteFile

func WriteFile(filePath string, data []byte)

WriteFile writes data to file at filePath

Types

type ConvertFunc

type ConvertFunc func([]string) ([]string, error)

ConvertFunc is a class of function that convert a string slice to another

Jump to

Keyboard shortcuts

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