Skip to content

Commit

Permalink
add version
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyunxing92 committed Nov 24, 2021
1 parent 3e4564e commit 30621a4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/imports-formatter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ package main
import (
"bufio"
"flag"
"fmt"
"io"
"io/ioutil"
"os"
"sort"
"strings"

"github.com/dubbogo/tools/constant"
"github.com/pkg/errors"
)

Expand Down Expand Up @@ -61,6 +63,7 @@ func init() {
}

func main() {
fmt.Println("imports-formatter:", constant.Version)
flag.Parse()
var err error
projectName, err = getProjectName(projectRootPath)
Expand Down
1 change: 1 addition & 0 deletions cmd/imports-formatter/test-files/test-imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ import (
_ "io/ioutil"
_ "os"
)

// 测试中间注释
5 changes: 5 additions & 0 deletions constant/version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package constant

const (
Version = "1.0.6"
)

0 comments on commit 30621a4

Please sign in to comment.