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

package filesystem

import "v2ray.com/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) and is imported by 2 packages. Updated 2019-04-09. Refresh now. Tools for package owners.