标签:pac span [] return package nbsp ret fun ack
package app
import (
"strings"
)
type StringArray []string
func (a *StringArray) Set(s string) error {
*a = append(*a, s)
return nil
}
func (a *StringArray) String() string {
return strings.Join(*a, ",")
}
标签:pac span [] return package nbsp ret fun ack
原文地址:http://www.cnblogs.com/zhangboyu/p/7457433.html