Changed api.Variable to have a machine readable value

The new contents of api.Variable are documented in
proc/variables.go.

Implements #243
This commit is contained in:
aarzilli
2015-10-18 19:37:13 +02:00
committed by Derek Parker
parent 91939bc9e7
commit 50b5fc92e2
15 changed files with 1192 additions and 745 deletions

View File

@ -707,9 +707,9 @@ func (dbp *Process) getGoInformation() (ver GoVersion, isextld bool, err error)
return
}
ver, ok := parseVersionString(vv.Value)
ver, ok := parseVersionString(vv.Value.(string))
if !ok {
err = fmt.Errorf("Could not parse version number: %s\n", vv.Value)
err = fmt.Errorf("Could not parse version number: %v\n", vv.Value)
return
}