1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 18:17:52 -05:00
v2fly/common/serial/string_list.go
2016-05-23 20:23:40 +02:00

16 lines
275 B
Go

package serial
type StringTList []StringT
func NewStringTList(raw []string) *StringTList {
list := StringTList(make([]StringT, len(raw)))
for idx, str := range raw {
list[idx] = StringT(str)
}
return &list
}
func (this *StringTList) Len() int {
return len(*this)
}