MCPcopy Create free account
hub / github.com/egonelbre/exp / AsUTF8String

Method AsUTF8String

ber/value.go:356–359  ·  view source on GitHub ↗

UTF8String parseUTF8String parses a ASN.1 UTF8String (raw UTF-8) from the given byte array and returns it.

()

Source from the content-addressed store, hash-verified

354// parseUTF8String parses a ASN.1 UTF8String (raw UTF-8) from the given byte
355// array and returns it.
356func (v *Token) AsUTF8String() (ret string, err error) {
357 v.mustBeValue()
358 return string(v.Bytes), nil
359}

Callers 1

UniversalMethod · 0.95

Calls 1

mustBeValueMethod · 0.95

Tested by

no test coverage detected