package base64
Import Path
encoding/base64 (on golang.org and go.dev)
Dependency Relation
imports 3 packages, and imported by 4 packages
Involved Source Files
d-> base64.go
Exported Type Names
Exported Values
func
NewEncoder(enc *
Encoding, w
io.
Writer)
io.
WriteCloser
NewEncoder returns a new base64 stream encoder. Data written to
the returned writer will be encoded using enc and then written to w.
Base64 encodings operate in 4-byte blocks; when finished
writing, the caller must Close the returned encoder to flush any
partially written blocks.
func
NewEncoding(encoder
string) *
Encoding
NewEncoding returns a new padded Encoding defined by the given alphabet,
which must be a 64-byte string that does not contain the padding character
or CR / LF ('\r', '\n').
The resulting Encoding uses the default padding character ('='),
which may be changed or disabled via WithPadding.
var
RawStdEncoding *
Encoding
RawStdEncoding is the standard raw, unpadded base64 encoding,
as defined in RFC 4648 section 3.2.
This is the same as StdEncoding but omits padding characters.
var
RawURLEncoding *
Encoding
RawURLEncoding is the unpadded alternate base64 encoding defined in RFC 4648.
It is typically used in URLs and file names.
This is the same as URLEncoding but omits padding characters.
var
URLEncoding *
Encoding
URLEncoding is the alternate base64 encoding defined in RFC 4648.
It is typically used in URLs and file names.
 |
The pages are generated with Golds v0.1.6. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project and developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |