Couple of minor fixes, update readme

This commit is contained in:
Matthew Holt
2019-12-31 22:51:55 -07:00
parent 06ea0a5295
commit 3d9f8eac08
5 changed files with 62 additions and 19 deletions

View File

@@ -96,7 +96,7 @@ type ModuleID string
func (id ModuleID) Namespace() string {
lastDot := strings.LastIndex(string(id), ".")
if lastDot < 0 {
return string(id)
return ""
}
return string(id)[:lastDot]
}