fs

package
v0.0.0-...-3369a28 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PARENT = "/tmp"
	MODULE = 0755
)
View Source
const (
	BUFFER_SIZE = 64 * 1024
)

Variables

View Source
var MIN_LINE int

Functions

func FormatToString

func FormatToString(vol interface{}) (string, error)

func FormatToStruct

func FormatToStruct(chunk *string) (map[string]interface{}, error)

func ReadFile

func ReadFile(name string) string

func ReadRealFile

func ReadRealFile(path, name string) (string, error)

func WriteRealFile

func WriteRealFile(buf []byte, name string) (bool, error)

Types

type Error

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

自定义 Error

func (*Error) Error

func (e *Error) Error() string

自定义异常要实现这个方法

Jump to

Keyboard shortcuts

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