mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
feat: Add SingleEnumValue
This commit is contained in:
parent
697a839308
commit
6c762a0db4
@ -158,3 +158,12 @@ func PositiveNumberValue() Value {
|
||||
Min: &zero,
|
||||
}
|
||||
}
|
||||
|
||||
func SingleEnumValue(value string) EnumValue {
|
||||
return EnumValue{
|
||||
EnforceValues: true,
|
||||
Values: []EnumString{
|
||||
CreateEnumString(value),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user