filesystem

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package filesystem 提供文件系统的相关函数

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(f fs.FS, path string) bool

Exists 判断文件或是目录是否存在

func FileServer added in v2.3.0

func FileServer(fsys fs.FS, erro *log.Logger) http.Handler

FileServer 以 fsys 为根目录作为静态文件服务

erro 在出错时日志的输出通道,可以为空,表示输出到 log.Default();

Types

This section is empty.

Jump to

Keyboard shortcuts

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