@@ -10,12 +10,13 @@ import (
10
10
"strings"
11
11
)
12
12
13
+ // Contants used for the meta tags
13
14
const (
14
- VERSION = "1.2.0"
15
- NAME = "gotags"
16
- URL = "https://github.com/jstemmer/gotags"
17
- AUTHOR_NAME = "Joel Stemmer"
18
- AUTHOR_EMAIL = "[email protected] "
15
+ Version = "1.2.0"
16
+ Name = "gotags"
17
+ URL = "https://github.com/jstemmer/gotags"
18
+ AuthorName = "Joel Stemmer"
19
+
19
20
)
20
21
21
22
var (
@@ -37,7 +38,7 @@ func init() {
37
38
flag .BoolVar (& printTree , "tree" , false , "print syntax tree (debugging)" )
38
39
39
40
flag .Usage = func () {
40
- fmt .Fprintf (os .Stderr , "gotags version %s\n \n " , VERSION )
41
+ fmt .Fprintf (os .Stderr , "gotags version %s\n \n " , Version )
41
42
fmt .Fprintf (os .Stderr , "Usage: %s [options] file(s)\n \n " , os .Args [0 ])
42
43
flag .PrintDefaults ()
43
44
}
@@ -124,7 +125,7 @@ func main() {
124
125
flag .Parse ()
125
126
126
127
if printVersion {
127
- fmt .Printf ("gotags version %s\n " , VERSION )
128
+ fmt .Printf ("gotags version %s\n " , Version )
128
129
return
129
130
}
130
131
@@ -181,9 +182,9 @@ func createMetaTags() []string {
181
182
return []string {
182
183
"!_TAG_FILE_FORMAT\t 2" ,
183
184
fmt .Sprintf ("!_TAG_FILE_SORTED\t %d\t /0=unsorted, 1=sorted/" , sorted ),
184
- fmt .Sprintf ("!_TAG_PROGRAM_AUTHOR\t %s\t /%s/" , AUTHOR_NAME , AUTHOR_EMAIL ),
185
- fmt .Sprintf ("!_TAG_PROGRAM_NAME\t %s" , NAME ),
185
+ fmt .Sprintf ("!_TAG_PROGRAM_AUTHOR\t %s\t /%s/" , AuthorName , AuthorEmail ),
186
+ fmt .Sprintf ("!_TAG_PROGRAM_NAME\t %s" , Name ),
186
187
fmt .Sprintf ("!_TAG_PROGRAM_URL\t %s" , URL ),
187
- fmt .Sprintf ("!_TAG_PROGRAM_VERSION\t %s" , VERSION ),
188
+ fmt .Sprintf ("!_TAG_PROGRAM_VERSION\t %s" , Version ),
188
189
}
189
190
}
0 commit comments