version: unexport all vars, turn Short/Long into funcs
The other formerly exported values aren't used outside the package, so just unexport them. Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:

committed by
Dave Anderson

parent
9e6b4d7ad8
commit
8b2ae47c31
@ -54,7 +54,7 @@ func runBuildPkg() {
|
||||
log.Fatalf("Cannot copy readme: %v", err)
|
||||
}
|
||||
|
||||
log.Printf("Built package version %s", version.Long)
|
||||
log.Printf("Built package version %s", version.Long())
|
||||
}
|
||||
|
||||
func precompressWasm() error {
|
||||
@ -78,7 +78,7 @@ func updateVersion() error {
|
||||
if err := json.Unmarshal(packageJSONBytes, &packageJSON); err != nil {
|
||||
return fmt.Errorf("Could not unmarshal package.json: %w", err)
|
||||
}
|
||||
packageJSON["version"] = version.Long
|
||||
packageJSON["version"] = version.Long()
|
||||
|
||||
packageJSONBytes, err = json.MarshalIndent(packageJSON, "", " ")
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user