mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-01-05 19:57:02 +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
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue