diff --git a/config.go b/config.go index 5c87729..a7da5f5 100644 --- a/config.go +++ b/config.go @@ -9,6 +9,7 @@ type Config struct { generator Generator } +// NewConfig returns a new Config with the specified Options. func NewConfig(options ...Option) Config { conf := Config{ extension: ".txt", diff --git a/make.go b/make.go index 640ec39..2e9d754 100644 --- a/make.go +++ b/make.go @@ -2,9 +2,9 @@ package nomino import "fmt" -// Make generates a random filename. The behavior can be controlled by specifying Options +// Make generates a random filename. The behavior can be controlled by specifying Options. // In general, the final filename will be [prefix]_[generated_string]_[original_filename]_[suffix].[extension]. -// If the name generator returns an error (generally, it shouldn't), that will be returned instead. +// If the name generator returns an error (generally, it shouldn't), that error will be returned instead. func Make(conf Config, opts ...Option) (string, error) { for _, opt := range opts { opt(&conf)