File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -6,16 +6,6 @@ package main
6
6
7
7
import (
8
8
"fmt"
9
- "go/build"
10
- "go/parser"
11
-
12
- "golang.org/x/tools/go/loader"
13
- )
14
-
15
- const (
16
- extractFile = "extracted.gotext.json"
17
- outFile = "out.gotext.json"
18
- gotextSuffix = ".gotext.json"
19
9
)
20
10
21
11
// NOTE: The command line tool already prefixes with "gotext:".
28
18
}
29
19
errorf = fmt .Errorf
30
20
)
31
-
32
- // TODO: still used. Remove when possible.
33
- func loadPackages (conf * loader.Config , args []string ) (* loader.Program , error ) {
34
- if len (args ) == 0 {
35
- args = []string {"." }
36
- }
37
-
38
- conf .Build = & build .Default
39
- conf .ParserMode = parser .ParseComments
40
-
41
- // Use the initial packages from the command line.
42
- args , err := conf .FromArgs (args , false )
43
- if err != nil {
44
- return nil , wrap (err , "loading packages failed" )
45
- }
46
-
47
- // Load, parse and type-check the whole program.
48
- return conf .Load ()
49
- }
You can’t perform that action at this time.
0 commit comments