From faea65d22f14b67b1085f8952b335ce19d5ee60c Mon Sep 17 00:00:00 2001 From: xushiwei Date: Sat, 20 Jan 2024 01:04:01 +0800 Subject: [PATCH] Update classfile.go --- classfile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classfile.go b/classfile.go index fd089a5..c9af4cc 100644 --- a/classfile.go +++ b/classfile.go @@ -79,12 +79,12 @@ func (p App) Delete(path string, handle func(ctx *Context)) { } // Static serves static files from a dir (default is "$YapFS/static"). -func (p *App) Static__0(pattern string, dir ...fs.FS) { +func (p App) Static__0(pattern string, dir ...fs.FS) { p.Static(pattern, dir...) } // Static serves static files from a http file system. -func (p *App) Static__1(pattern string, fs http.FileSystem) { +func (p App) Static__1(pattern string, fs http.FileSystem) { p.StaticHttp(pattern, fs) }