AsSlice returns the set as a slice.
()
| 49 | |
| 50 | // AsSlice returns the set as a slice. |
| 51 | func (s String) AsSlice() []string { |
| 52 | if s == nil { |
| 53 | return nil |
| 54 | } |
| 55 | dst := make([]string, 0, len(s)) |
| 56 | for k := range s { |
| 57 | dst = append(dst, k) |
| 58 | } |
| 59 | return dst |
| 60 | } |
| 61 | |
| 62 | // DecodeMsg decodes the message from the reader. |
| 63 | func (s *String) DecodeMsg(reader *msgp.Reader) error { |
no outgoing calls