2019-08-09 20:36:45 +03:00
|
|
|
# Module - "base64"
|
|
|
|
|
|
|
|
```golang
|
|
|
|
fmt := 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.
|
2019-12-20 22:40:38 +03:00
|
|
|
- `raw_decode(s)`: returns the bytes represented by the base64 string s which
|
|
|
|
omits the padding.
|
2019-08-09 20:36:45 +03:00
|
|
|
- `url_encode(src)`: returns the url-base64 encoding of src.
|
|
|
|
- `url_decode(s)`: returns the bytes represented by the url-base64 string s.
|
2019-12-20 22:40:38 +03:00
|
|
|
- `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
|
2020-03-04 17:53:38 +03:00
|
|
|
s which omits the padding.
|