Update go-restful

This commit is contained in:
Brendan Burns
2015-08-26 21:20:22 -07:00
parent b6f2f396ba
commit 535c509dd3
12 changed files with 268 additions and 49 deletions

View File

@@ -95,8 +95,14 @@ func (p *Parameter) DataType(typeName string) *Parameter {
return p
}
// DefaultValue sets the default value field and returnw the receiver
// DefaultValue sets the default value field and returns the receiver
func (p *Parameter) DefaultValue(stringRepresentation string) *Parameter {
p.data.DefaultValue = stringRepresentation
return p
}
// Description sets the description value field and returns the receiver
func (p *Parameter) Description(doc string) *Parameter {
p.data.Description = doc
return p
}