mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
@@ -235,7 +235,7 @@ func generateFileIsZeroWrappers(c *codegen.Inspector) error {
|
||||
|
||||
}
|
||||
|
||||
pkgImports := append(methods.Imports(), "github.com/gohugoio/hugo/helpers", "github.com/gohugoio/hugo/source")
|
||||
pkgImports := append(methods.Imports(), "github.com/gohugoio/hugo/common/loggers", "github.com/gohugoio/hugo/source")
|
||||
|
||||
fmt.Fprintf(f, `%s
|
||||
|
||||
@@ -245,10 +245,10 @@ package page
|
||||
|
||||
// ZeroFile represents a zero value of source.File with warnings if invoked.
|
||||
type zeroFile struct {
|
||||
log *helpers.DistinctLogger
|
||||
log loggers.Logger
|
||||
}
|
||||
|
||||
func NewZeroFile(log *helpers.DistinctLogger) source.File {
|
||||
func NewZeroFile(log loggers.Logger) source.File {
|
||||
return zeroFile{log: log}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user