http.Dir的文档在哪里

时间:2019-03-16 18:12:49

标签: http go

当我查看FileSystem的文档时,我正在尝试设置go文件服务器并遇到功能http.Dir(path string) http.FileSystem

在net / http / fs.go 705行的来源中说:

//To use the operating system's file system implementation,
//
// use http.Dir:
//
//     http.Handle("/", http.FileServer(http.Dir("/tmp")))

但是我找不到任何此功能的文档。我想念什么吗?

编辑: 我想念那是一种类型

0 个答案:

没有答案