WithLabels allows labels to be set on content
(labels map[string]string)
| 180 | |
| 181 | // WithLabels allows labels to be set on content |
| 182 | func WithLabels(labels map[string]string) Opt { |
| 183 | return func(info *Info) error { |
| 184 | info.Labels = labels |
| 185 | return nil |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | // WriterOpts is internally used by WriterOpt. |
| 190 | type WriterOpts struct { |
no outgoing calls
searching dependent graphs…