Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
cyz-home committed Apr 5, 2022
1 parent b4ba669 commit ce47cee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions console/commands/bean.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func genBean(dir string, bc beanCache) {
str = str + "\n" + s2
}

err := os.WriteFile(dir+"/z_inject_gen.go", []byte(str), 0766)
err := os.WriteFile(dir+"/z_inject_gen.go", []byte(str+"\n"), 0766)
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -156,7 +156,7 @@ func genProvider(bc beanCache, m map[string]string) string {
pointer = "*"
}

for tagName, _ := range attr.Tag {
for tagName := range attr.Tag {
if tagName == "inject" {
str = str + "\n\t\t" +
sVar + "." + attrName + " = " + pointer + getInitializeNewFunName(attr, m)
Expand Down

0 comments on commit ce47cee

Please sign in to comment.