SetFromArrayNoValidate creates a set of channels without validating they are valid names.
(chans []ID)
| 107 | |
| 108 | // SetFromArrayNoValidate creates a set of channels without validating they are valid names. |
| 109 | func SetFromArrayNoValidate(chans []ID) Set { |
| 110 | result := make(Set, len(chans)) |
| 111 | for _, ch := range chans { |
| 112 | result[ch] = present{} |
| 113 | } |
| 114 | return result |
| 115 | } |
| 116 | |
| 117 | // SetOfNoValidate creates a new Set from inline channels. |
| 118 | func SetOfNoValidate(chans ...ID) Set { |
no outgoing calls