v2ray-core: github.com/v2ray/v2ray-core/common/platform/filesystem Index | Files

package filesystem

import "github.com/v2ray/v2ray-core/common/platform/filesystem"

Index

Package Files

file.go

func CopyFile Uses

func CopyFile(dst string, src string) error

func ReadAsset Uses

func ReadAsset(file string) ([]byte, error)

func ReadFile Uses

func ReadFile(path string) ([]byte, error)

type FileReaderFunc Uses

type FileReaderFunc func(path string) (io.ReadCloser, error)
var NewFileReader FileReaderFunc = func(path string) (io.ReadCloser, error) {
    return os.Open(path)
}

Package filesystem imports 4 packages (graph). Updated 2019-10-11. Refresh now. Tools for package owners.