Add volume API/CLI

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
Brian Goff 2015-06-12 09:25:32 -04:00
parent 01fe6537f1
commit 1858b15498
2 changed files with 13 additions and 5 deletions

View file

@ -7,7 +7,6 @@ import (
"go/parser"
"go/token"
"reflect"
"strings"
)
var ErrBadReturn = errors.New("found return arg with no name: all args must be named")
@ -39,7 +38,7 @@ type arg struct {
}
func (a *arg) String() string {
return strings.ToLower(a.Name) + " " + strings.ToLower(a.ArgType)
return a.Name + " " + a.ArgType
}
// Parses the given file for an interface definition with the given name