API: Added 'Raw' which describes that type better

This commit is contained in:
diamondburned (Forefront) 2020-05-03 19:13:58 -07:00
parent be99041a03
commit 6ece6e72ff
1 changed files with 5 additions and 5 deletions

View File

@ -82,14 +82,14 @@ type CustomParser interface {
CustomParse(arguments string) error
}
// Arguments implements the CustomParser interface, which sets all the
// RawArguments implements the CustomParser interface, which sets all the
// arguments into it as raw as it could.
type Arguments string
type RawArguments string
var _ CustomParser = (*Arguments)(nil)
var _ CustomParser = (*RawArguments)(nil)
func (a *Arguments) CustomParse(arguments string) error {
*a = Arguments(arguments)
func (a *RawArguments) CustomParse(arguments string) error {
*a = RawArguments(arguments)
return nil
}