File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 7
7
"github.com/anttiharju/vmatch/internal/inject"
8
8
"github.com/anttiharju/vmatch/internal/language"
9
9
"github.com/anttiharju/vmatch/internal/linter"
10
- "github.com/anttiharju/vmatch/internal /version"
10
+ "github.com/anttiharju/vmatch/pkg /version"
11
11
)
12
12
13
13
func firstArgIs (arg string , args []string ) bool {
Original file line number Diff line number Diff line change @@ -3,11 +3,12 @@ package version
3
3
import (
4
4
"fmt"
5
5
"runtime/debug"
6
+ "strings"
6
7
)
7
8
8
9
func Print () int {
9
10
if buildInfo , ok := debug .ReadBuildInfo (); ok {
10
- version := buildInfo .Main .Version [ 1 :] // remove "v" prefix
11
+ version := strings . TrimPrefix ( buildInfo .Main .Version , "v" )
11
12
goVersion := buildInfo .GoVersion
12
13
13
14
var revision , buildTime string
You can’t perform that action at this time.
0 commit comments