(d CSPFetchDirective, values ...string)
| 14 | type cspDirectives map[CSPFetchDirective][]string |
| 15 | |
| 16 | func (s cspDirectives) Append(d CSPFetchDirective, values ...string) { |
| 17 | if _, ok := s[d]; !ok { |
| 18 | s[d] = make([]string, 0) |
| 19 | } |
| 20 | s[d] = append(s[d], values...) |
| 21 | } |
| 22 | |
| 23 | // CSPFetchDirective is the list of all constant fetch directives that |
| 24 | // can be used/appended to. |
no outgoing calls
no test coverage detected