mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 14:16:06 +00:00
Add a global Reset func
So we can do some benchmarking.
This commit is contained in:
1 parent
dc3618abcd
commit
09ed41be71
1 file changed
+1
-1
+1
-1
@@ -56,7 +56,7 @@ var Hugo *hugolib.HugoSites
|
||||
// Reset resets Hugo ready for a new full build. This is mainly only useful
|
||||
// for benchmark testing etc. via the CLI commands.
|
||||
func Reset() error {
|
||||
MainSite = nil
|
||||
Hugo = nil
|
||||
viper.Reset()
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user