mirror of https://github.com/v2ray/v2ray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
323 B
16 lines
323 B
9 years ago
|
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)
|
||
|
}
|