mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-13 20:24:00 +02:00
@@ -32,7 +32,7 @@ const (
|
||||
tomlDelimLf = "+++\n"
|
||||
)
|
||||
|
||||
func InterfaceToConfig(in interface{}, format metadecoders.Format, w io.Writer) error {
|
||||
func InterfaceToConfig(in any, format metadecoders.Format, w io.Writer) error {
|
||||
if in == nil {
|
||||
return errors.New("input was nil")
|
||||
}
|
||||
@@ -77,7 +77,7 @@ func InterfaceToConfig(in interface{}, format metadecoders.Format, w io.Writer)
|
||||
}
|
||||
}
|
||||
|
||||
func InterfaceToFrontMatter(in interface{}, format metadecoders.Format, w io.Writer) error {
|
||||
func InterfaceToFrontMatter(in any, format metadecoders.Format, w io.Writer) error {
|
||||
if in == nil {
|
||||
return errors.New("input was nil")
|
||||
}
|
||||
|
Reference in New Issue
Block a user