Replace interface{} by any (#901)

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero
2023-06-16 10:49:05 +09:00
committed by GitHub
parent 94fe519ed5
commit c55fa0f765
46 changed files with 394 additions and 394 deletions
+3 -3
View File
@@ -11,10 +11,10 @@ import (
type FileRenderer struct {
fs *filesystem.FileSystem
Context *Context
Data interface{}
Data any
}
func NewFileRenderer(fs *filesystem.FileSystem, basePath string, data interface{}) *FileRenderer {
func NewFileRenderer(fs *filesystem.FileSystem, basePath string, data any) *FileRenderer {
return &FileRenderer{
fs: fs,
Context: &Context{
@@ -25,7 +25,7 @@ func NewFileRenderer(fs *filesystem.FileSystem, basePath string, data interface{
}
}
func NewFirstPassRenderer(basePath string, data interface{}) *FileRenderer {
func NewFirstPassRenderer(basePath string, data any) *FileRenderer {
fs := filesystem.DefaultFileSystem()
return &FileRenderer{
fs: fs,