MCPcopy Create free account
hub / github.com/caddyserver/caddy / StringArray

TypeAlias StringArray

modules/caddyhttp/logging.go:174–174  ·  view source on GitHub ↗

StringArray is a slices of strings, but also accepts a single string as a value when JSON unmarshaling, converting it to a slice of one string.

Source from the content-addressed store, hash-verified

172// a single string as a value when JSON unmarshaling,
173// converting it to a slice of one string.
174type StringArray []string
175
176// UnmarshalJSON satisfies json.Unmarshaler.
177func (sa *StringArray) UnmarshalJSON(b []byte) error {

Callers 1

UnmarshalJSONMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected