Skip to content

Commit

Permalink
Merge pull request #392 from TarsCloud/fix/lbbniu/tars2go
Browse files Browse the repository at this point in the history
fixbug(tars2go): out vector<map<string, string>> list error
  • Loading branch information
lbbniu authored Sep 30, 2022
2 parents fe8e7c3 + 0c33f2d commit 7004872
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions tars/tools/tars2go/gen_go.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,10 @@ func (gen *GenGo) saveToSourceFile(filename string) {
}

func (gen *GenGo) genVariableName(prefix, name string) string {
if prefix != "" {
return prefix + name
} else {
if strings.HasPrefix(name, "(*") && strings.HasSuffix(name, ")") {
return strings.Trim(name, "()")
}
return prefix + name
}

func (gen *GenGo) genHead() {
Expand Down
2 changes: 1 addition & 1 deletion tars/tools/tars2go/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main

// VERSION of the tars2go tools.
const VERSION = "1.1.9"
const VERSION = "1.1.10"

0 comments on commit 7004872

Please sign in to comment.