file

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func De

func De()

func QRCodeAddress

func QRCodeAddress(fi io.Reader) string

QRCodeAddress 二维码地址

	open, err := os.Open("./img.img")
	if err != nil {
		log.Println(err)
	}
	open.Close()
    url := QRCodeAddress(open)
    fmt.Println(url)

func ReadFile

func ReadFile(filename string) ([]string, error)

ReadFile 读取文件

// 读取文件
lines, err := ReadFile("file.txt")
if err != nil {
	// 处理错误
}

func ReadLargeFile

func ReadLargeFile(filename string) ([]string, error)

ReadLargeFile 并发读取大文件

// 并发读取大文件
lines, err = ReadLargeFile("large_file.txt")
if err != nil {
	// 处理错误
}

Types

This section is empty.

Jump to

Keyboard shortcuts

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