mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 18:17:52 -05:00
16 lines
275 B
Go
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)
|
|
}
|