sdk/golang/Standard Library/GoNetTextproto
Standard Library

GoNetTextproto

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

Other Methods

.CanonicalMIMEHeaderKey()Neutral
#
Signature
CanonicalMIMEHeaderKey(s string) string

CanonicalMIMEHeaderKey returns the canonical format of the

.Conn.Close()Neutral
#
Signature
Conn.Close() error

Close closes the connection.

.Conn.Cmd()Neutral
#
Signature
Conn.Cmd(format string, args any) (uint, error)

Cmd is a convenience method that sends a command after

.Dial()Neutral
#
Signature
Dial(network string, addr string) (*Conn, error)

Dial connects to the given address on the given network using net.Dial

.Error.Error()Neutral
#
Signature
Error.Error() string

Error.Error function.

.MIMEHeader.Add()Neutral
#
Signature
MIMEHeader.Add(key string, value string)

Add adds the key, value pair to the header.

.MIMEHeader.Del()Neutral
#
Signature
MIMEHeader.Del(key string)

Del deletes the values associated with key.

.MIMEHeader.Get()Neutral
#
Signature
MIMEHeader.Get(key string) string

Get gets the first value associated with the given key.

.MIMEHeader.Set()Neutral
#
Signature
MIMEHeader.Set(key string, value string)

Set sets the header entries associated with key to

.MIMEHeader.Values()Neutral
#
Signature
MIMEHeader.Values(key string) []string

Values returns all values associated with the given key.

Fully-Qualified Names

FQNField
net/textprotofqns[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 ...  # net/textproto