parent
34bd9d31ac
commit
c51a6d3e57
2 changed files with 2 additions and 1 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
0.35.0
|
||||
0.35.1
|
||||
|
|
|
@ -75,6 +75,7 @@ func CompileAndSave(src string, o *Options) error {
|
|||
if !strings.HasSuffix(src, ".go") {
|
||||
return fmt.Errorf("%s is not a Go file", src)
|
||||
}
|
||||
o.Outfile = strings.TrimSuffix(o.Outfile, fmt.Sprintf(".%s", fileExt))
|
||||
if len(o.Outfile) == 0 {
|
||||
o.Outfile = strings.TrimSuffix(src, ".go")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue