mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-09 03:37:37 -05:00
16 lines
323 B
Go
16 lines
323 B
Go
|
package serial
|
||
|
|
||
|
type StringLiteralList []StringLiteral
|
||
|
|
||
|
func NewStringLiteralList(raw []string) *StringLiteralList {
|
||
|
list := StringLiteralList(make([]StringLiteral, len(raw)))
|
||
|
for idx, str := range raw {
|
||
|
list[idx] = StringLiteral(str)
|
||
|
}
|
||
|
return &list
|
||
|
}
|
||
|
|
||
|
func (this *StringLiteralList) Len() int {
|
||
|
return len(*this)
|
||
|
}
|