File: stdlib-base64.md

package info (click to toggle)
golang-github-d5-tengo 2.17.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,240 kB
  • sloc: makefile: 12
file content (19 lines) | stat: -rw-r--r-- 711 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Module - "base64"

```golang
base64 := import("base64")
```

## Functions

- `encode(src)`: returns the base64 encoding of src.
- `decode(s)`: returns the bytes represented by the base64 string s.
- `raw_encode(src)`: returns the base64 encoding of src but omits the padding.
- `raw_decode(s)`: returns the bytes represented by the base64 string s which
  omits the padding.
- `url_encode(src)`: returns the url-base64 encoding of src.
- `url_decode(s)`: returns the bytes represented by the url-base64 string s.
- `raw_url_encode(src)`: returns the url-base64 encoding of src but omits the
  padding.
- `raw_url_decode(s)`: returns the bytes represented by the url-base64 string
  s which omits the padding.