Standard Library

GoMime

Go stdlib package — mime. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.AddExtensionType()Neutral
#
Signature
AddExtensionType(ext string, typ string) error

AddExtensionType sets the MIME type associated with

.ExtensionsByType()Neutral
#
Signature
ExtensionsByType(typ string) ([]string, error)

ExtensionsByType returns the extensions known to be associated with the MIME

.FormatMediaType()Neutral
#
Signature
FormatMediaType(t string, param map[string]string) string

FormatMediaType serializes mediatype t and the parameters

.ParseMediaType()Neutral
#
Signature
ParseMediaType(v string) (string, map[string]string, error)

ParseMediaType parses a media type value and any optional

.TypeByExtension()Neutral
#
Signature
TypeByExtension(ext string) string

TypeByExtension returns the MIME type associated with the file extension ext.

.WordDecoder.Decode()Neutral
#
Signature
WordDecoder.Decode(word string) (string, error)

Decode decodes an RFC 2047 encoded-word.

.WordDecoder.DecodeHeader()Neutral
#
Signature
WordDecoder.DecodeHeader(header string) (string, error)

DecodeHeader decodes all encoded-words of the given string. It returns an

.WordEncoder.Encode()Neutral
#
Signature
WordEncoder.Encode(charset string, s string) string

Encode returns the encoded-word form of s. If s is ASCII without special

.WordDecoder()Neutral
#
Signature
type WordDecoder ...

A WordDecoder decodes MIME headers containing RFC 2047 encoded-words.

.WordEncoder()Neutral
#
Signature
type WordEncoder ...

A WordEncoder is an RFC 2047 encoded-word encoder.

Fully-Qualified Names

FQNField
mimefqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # mime