Go stdlib package — mime. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.AddExtensionType()NeutralAddExtensionType(ext string, typ string) error
AddExtensionType sets the MIME type associated with
.ExtensionsByType()NeutralExtensionsByType(typ string) ([]string, error)
ExtensionsByType returns the extensions known to be associated with the MIME
.FormatMediaType()NeutralFormatMediaType(t string, param map[string]string) string
FormatMediaType serializes mediatype t and the parameters
.ParseMediaType()NeutralParseMediaType(v string) (string, map[string]string, error)
ParseMediaType parses a media type value and any optional
.TypeByExtension()NeutralTypeByExtension(ext string) string
TypeByExtension returns the MIME type associated with the file extension ext.
.WordDecoder.Decode()NeutralWordDecoder.Decode(word string) (string, error)
Decode decodes an RFC 2047 encoded-word.
.WordDecoder.DecodeHeader()NeutralWordDecoder.DecodeHeader(header string) (string, error)
DecodeHeader decodes all encoded-words of the given string. It returns an
.WordEncoder.Encode()NeutralWordEncoder.Encode(charset string, s string) string
Encode returns the encoded-word form of s. If s is ASCII without special
.WordDecoder()Neutraltype WordDecoder ...
A WordDecoder decodes MIME headers containing RFC 2047 encoded-words.
.WordEncoder()Neutraltype WordEncoder ...
A WordEncoder is an RFC 2047 encoded-word encoder.
| FQN | Field | |
|---|---|---|
| mime | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # mime