util

package
v0.0.0-...-fc3359f Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src, dst string) (int64, error)

Copy 拷贝

func GetOutboundIP

func GetOutboundIP() string

GetOutboundIP 获取当前服务器的IP

func GoFmt

func GoFmt(path string)

GoFmt 格式化代码

func IfNoFileToCreate

func IfNoFileToCreate(fileName string) (file *os.File)

IfNoFileToCreate 文件不存在就创建文件

func IsExists

func IsExists(path string) bool

IsExists 判断所给路径文件/文件夹是否存在

func WriteStringToFileMethod

func WriteStringToFileMethod(fileName string, writeInfo string)

WriteStringToFileMethod 通过 io.WriteString 写入文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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