sdk/golang/Standard Library/GoEncodingBase32
Standard Library

GoEncodingBase32

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

Other Methods

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

CorruptInputError.Error function.

.Encoding.Decode()Neutral
#
Signature
Encoding.Decode(dst []byte, src []byte) (int, error)

Decode decodes src using the encoding enc. It writes at most

.Encoding.DecodeString()Neutral
#
Signature
Encoding.DecodeString(s string) ([]byte, error)

DecodeString returns the bytes represented by the base32 string s.

.Encoding.DecodedLen()Neutral
#
Signature
Encoding.DecodedLen(n int) int

DecodedLen returns the maximum length in bytes of the decoded data

.Encoding.Encode()Neutral
#
Signature
Encoding.Encode(dst []byte, src []byte)

Encode encodes src using the encoding enc, writing

.Encoding.EncodeToString()Neutral
#
Signature
Encoding.EncodeToString(src []byte) string

EncodeToString returns the base32 encoding of src.

.Encoding.EncodedLen()Neutral
#
Signature
Encoding.EncodedLen(n int) int

EncodedLen returns the length in bytes of the base32 encoding

.Encoding.WithPadding()Neutral
#
Signature
Encoding.WithPadding(padding rune) *Encoding

WithPadding creates a new encoding identical to enc except

.NewDecoder()Neutral
#
Signature
NewDecoder(enc *Encoding, r io.Reader) io.Reader

NewDecoder constructs a new base32 stream decoder.

.NewEncoder()Neutral
#
Signature
NewEncoder(enc *Encoding, w io.Writer) io.WriteCloser

NewEncoder returns a new base32 stream encoder. Data written to

Fully-Qualified Names

FQNField
encoding/base32fqns[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 ...  # encoding/base32