mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-24 21:56:05 +02:00
Add some missing doc comments
As pointed out by the linter, some exported functions and types are missing doc comments. The linter warnings have been reduced from 194 to 116. Not all missing comments have been added in this commit though.
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
9891c0fb0e
commit
81c13171a9
@@ -70,9 +70,9 @@ func readFile(fs *afero.BasePathFs, filename string) (string, error) {
|
||||
return string(b), nil
|
||||
}
|
||||
|
||||
// ReadFilereads the file named by filename relative to the configured
|
||||
// WorkingDir. It returns the contents as a string. There is a upper size
|
||||
// limit set at 1 megabytes.
|
||||
// ReadFile reads the file named by filename relative to the configured WorkingDir.
|
||||
// It returns the contents as a string.
|
||||
// There is an upper size limit set at 1 megabytes.
|
||||
func (ns *Namespace) ReadFile(i interface{}) (string, error) {
|
||||
s, err := cast.ToStringE(i)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user