mirror of
https://github.com/Baipyrus/ProxySwitcher.git
synced 2024-12-26 12:41:45 +00:00
better naming for VariantType struct
This commit is contained in:
parent
7c52c2d5d0
commit
c5ed0be5f2
@ -7,17 +7,17 @@ type Config struct {
|
|||||||
Unset []*Variant `json:"unset,omitempty"`
|
Unset []*Variant `json:"unset,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Type string
|
type VariantType string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
TEXT Type = "text"
|
TEXT VariantType = "text"
|
||||||
VARIABLE Type = "variable"
|
VARIABLE VariantType = "variable"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Variant struct {
|
type Variant struct {
|
||||||
Arguments []string `json:"args"`
|
Arguments []string `json:"args"`
|
||||||
Type Type `json:"type,omitempty"`
|
Type VariantType `json:"type,omitempty"`
|
||||||
Equator string `json:"equator,omitempty"`
|
Equator string `json:"equator,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Command struct {
|
type Command struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user