Skip to content

Commit 30621a4

Browse files
committed
add version
1 parent 3e4564e commit 30621a4

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

cmd/imports-formatter/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ package main
2020
import (
2121
"bufio"
2222
"flag"
23+
"fmt"
2324
"io"
2425
"io/ioutil"
2526
"os"
2627
"sort"
2728
"strings"
2829

30+
"github.com/dubbogo/tools/constant"
2931
"github.com/pkg/errors"
3032
)
3133

@@ -61,6 +63,7 @@ func init() {
6163
}
6264

6365
func main() {
66+
fmt.Println("imports-formatter:", constant.Version)
6467
flag.Parse()
6568
var err error
6669
projectName, err = getProjectName(projectRootPath)

cmd/imports-formatter/test-files/test-imports.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ import (
77
_ "io/ioutil"
88
_ "os"
99
)
10+
1011
// 测试中间注释

constant/version.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package constant
2+
3+
const (
4+
Version = "1.0.6"
5+
)

0 commit comments

Comments
 (0)