Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
Go
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Golang Context.ServeFile示例
编程语言:
Golang
命名空间/包名称:
github.com/TheJumpCloud/rsc/websrv
类/类型:
Context
方法/功能:
ServeFile
hotexamples.com的示例:
1
Golang Context.ServeFile - 已找到1个示例
。这些是从开源项目中提取的最受好评的
github.com/TheJumpCloud/rsc/websrv.Context.ServeFile
现实Golang示例。您可以评价示例,以帮助我们提高示例质量。
常用方法
显示
隐藏
Write(2)
Header(1)
Redirect(1)
ServeFile(1)
常用方法
Write (2)
Header (1)
Redirect (1)
ServeFile (1)
示例#1
0
显示文件
文件:
main.go
项目:
TheJumpCloud/rsc
func (s *showPDF) Get(ctxt *websrv.Context) { ctxt.ServeFile(filepath.Join(*dir, s.Doc.File)) }