utils

package module
v0.0.0-...-fcbae7a Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 11 Imported by: 0

README

utils

snippets for util

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnsiToUTF8

func AnsiToUTF8(src []byte) []byte

* * cp949 to utf8 byte *

func AnsiToUtf8String

func AnsiToUtf8String(src string) string

* * cp949 to utf8 string *

func Atof64

func Atof64(sv string) float64

* * atof64 *

func Atoi

func Atoi(str string) int

* * atoi *

func Atoi64

func Atoi64(sv string) int64

* * atoi64 *

func ChangeUserAgent

func ChangeUserAgent(ua string)

func CopyFile

func CopyFile(srcFile string, destFile string, deleteExist bool) error

* * CopyFile *

func DownloadFile

func DownloadFile(filepath string, url string) error

* * HTTP 파일 다운로드 *

func ExecStart

func ExecStart(dir string, name string, hideWindow bool, arg ...string) error

func ExecWithOutput

func ExecWithOutput(dir string, name string, hideWindow bool, arg ...string) (string, error)

func GetDesktopPath

func GetDesktopPath() (string, error)

* * GetDesktopPath *

func GetDocumentPath

func GetDocumentPath() (string, error)

* * GetDocumentPath *

func GetHttpData

func GetHttpData(url string) ([]byte, error)

* * GetHttpData *

func IsExistFile

func IsExistFile(fname string) bool

* * Exist check .. file or directory *

func IsExistFileWithSize

func IsExistFileWithSize(fname string) bool

* * IsExistFileWithSize *

func IsValidIP

func IsValidIP(ip string) bool

* * 아이피 주소 검증 *

func Utf8ToAnsi

func Utf8ToAnsi(src []byte) []byte

* * utf8 to cp949 *

Types

This section is empty.

Jump to

Keyboard shortcuts

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