func NewNamer()

in pkg/config/name.go [47:60]


func NewNamer(matches *Matches) (Namer, error) {
	if matches == nil {
		return &identity{}, nil
	}
	compiledMatches, err := regexp.Compile(matches.Matches)
	if err != nil {
		return nil, err
	}
	return &namer{
		aliases: make(map[string]string),
		matches: compiledMatches,
		as:      matches.As,
	}, nil
}