sdk/golang/Standard Library/GoEncodingAsn1
Standard Library

GoEncodingAsn1

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

Other Methods

.BitString.At()Neutral
#
Signature
BitString.At(i int) int

At returns the bit at the given index. If the index is out of range it

.BitString.RightAlign()Neutral
#
Signature
BitString.RightAlign() []byte

RightAlign returns a slice where the padding bits are at the beginning. The

.Marshal()Neutral
#
Signature
Marshal(val any) ([]byte, error)

Marshal returns the ASN.1 encoding of val.

.MarshalWithParams()Neutral
#
Signature
MarshalWithParams(val any, params string) ([]byte, error)

MarshalWithParams allows field parameters to be specified for the

.ObjectIdentifier.Equal()Neutral
#
Signature
ObjectIdentifier.Equal(other ObjectIdentifier) bool

Equal reports whether oi and other represent the same identifier.

.ObjectIdentifier.String()Neutral
#
Signature
ObjectIdentifier.String() string

ObjectIdentifier.String function.

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

StructuralError.Error function.

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

SyntaxError.Error function.

.Unmarshal()Neutral
#
Signature
Unmarshal(b []byte, val any) ([]byte, error)

Unmarshal parses the DER-encoded ASN.1 data structure b

.UnmarshalWithParams()Neutral
#
Signature
UnmarshalWithParams(b []byte, val any, params string) ([]byte, error)

UnmarshalWithParams allows field parameters to be specified for the

Fully-Qualified Names

FQNField
encoding/asn1fqns[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/asn1