mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-07 12:38:05 +00:00
API: Added 'Raw' which describes that type better
This commit is contained in:
parent
be99041a03
commit
6ece6e72ff
|
@ -82,14 +82,14 @@ type CustomParser interface {
|
||||||
CustomParse(arguments string) error
|
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.
|
// 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 {
|
func (a *RawArguments) CustomParse(arguments string) error {
|
||||||
*a = Arguments(arguments)
|
*a = RawArguments(arguments)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue