tools

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(path string) bool

func InArray

func InArray(arr []string, str string) bool

InArray 判断字符串是否在数组中

func Input

func Input(prompt string) string

func InputInteger

func InputInteger(prompt string) int

func MkdirAll

func MkdirAll(path string)

func OpenBrowser

func OpenBrowser(url string)

OpenBrowser 打开浏览器

func TestTime

func TestTime(year int, month int, day int) bool

Types

type File

type File struct {
	// contains filtered or unexported fields
}

func NewOpen

func NewOpen(path string, mode string) *File

func Open

func Open(path string, mode string) (*File, error)

func (*File) Close

func (f *File) Close()

func (*File) Read

func (f *File) Read() (string, error)

func (*File) Write

func (f *File) Write(content any)

Jump to

Keyboard shortcuts

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