Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkg/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ func getData(name string, keyType string, valueType string, wd string) (template
if genPkg == nil {
return templateData{}, fmt.Errorf("unable to find package info for " + wd)
}
if genPkg.Name == "" {
return templateData{}, fmt.Errorf("unable to find package name for " + wd)
}

var err error
data.Name = name
Expand Down