mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +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
@@ -26,15 +26,18 @@ func New() *Namespace {
|
||||
type Namespace struct {
|
||||
}
|
||||
|
||||
// Print returns string representation of the passed arguments.
|
||||
func (ns *Namespace) Print(a ...interface{}) string {
|
||||
return _fmt.Sprint(a...)
|
||||
}
|
||||
|
||||
// Printf returns a formatted string representation of the passed arguments.
|
||||
func (ns *Namespace) Printf(format string, a ...interface{}) string {
|
||||
return _fmt.Sprintf(format, a...)
|
||||
|
||||
}
|
||||
|
||||
// Print returns string representation of the passed arguments ending with a newline.
|
||||
func (ns *Namespace) Println(a ...interface{}) string {
|
||||
return _fmt.Sprintln(a...)
|
||||
}
|
||||
|
Reference in New Issue
Block a user