Update altsrc/map_input_source.go

Co-authored-by: Robert Liebowitz <rliebz@gmail.com>
This commit is contained in:
Igor Artasevych 2020-10-22 10:00:45 +03:00 committed by GitHub
parent 27a8625ccd
commit 7f005015c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ type MapInputSource struct {
valueMap map[interface{}]interface{}
}
//NewMapInputSource create a new MapInputSource type
// NewMapInputSource creates a new MapInputSource for implementing custom input sources.
func NewMapInputSource(file string, valueMap map[interface{}]interface{}) *MapInputSource {
return &MapInputSource{file: file, valueMap: valueMap}
}