// If a config file is found, read it in.
if err := viper.ReadInConfig(); err != nil {
- log.WithError(err).Warnf("error reading config %s (using defaults)", viper.ConfigFileUsed())
+ if _, ok := err.(viper.ConfigFileNotFoundError); !ok {
+ log.WithError(err).Warnf("error reading config %s (using defaults)", viper.ConfigFileUsed())
+ }
}
}
<head>
<title>Hello World</title>
</head>
- <body><h1 id="hello-world">Hello World <a class="anchor" href="#hello-world">¶</a></h1>
+ <body><h1 id="hello-world">Hello World <a class="anchor" href="#hello-world"> </a></h1>
<p>Hello World!</p>
</body>
</html>