| 1 | Source: golang-github-dop251-base64dec |
| 2 | Section: golang |
| 3 | Priority: optional |
| 4 | Maintainer: Daniel Baumann <[email protected]> |
| 5 | Build-Depends: |
| 6 | debhelper-compat (= 13), |
| 7 | dh-sequence-golang, |
| 8 | golang-go, |
| 9 | Standards-Version: 4.7.4 |
| 10 | Homepage: https://github.com/dop251/base64dec |
| 11 | Vcs-Browser: https://forgejo.debian.net/golang/golang-github-dop251-base64dec |
| 12 | Vcs-Git: https://forgejo.debian.net/golang/golang-github-dop251-base64dec |
| 13 | Testsuite: autopkgtest-pkg-go |
| 14 | XS-Go-Import-Path: github.com/dop251/base64dec |
| 15 | |
| 16 | Package: golang-github-dop251-base64dec-dev |
| 17 | Architecture: all |
| 18 | Multi-Arch: foreign |
| 19 | Depends: |
| 20 | ${misc:Depends}, |
| 21 | Description: Universal Lenient Base64 Decoder (Go library) |
| 22 | base64dec is a Universal Lenient Base64 Decoder. It's a modified version of the |
| 23 | standard base64 decoder from encoding/base64. The key differences are: |
| 24 | . |
| 25 | * Accepts both Standard and URL-safe encoding, no need to specify it |
| 26 | explicitly. |
| 27 | * Works for both padded and raw inputs. |
| 28 | * The input can be a string or a []byte, no allocation or copy is |
| 29 | performed for either. |
| 30 | . |
| 31 | The goal was to create a decoder compatible with the one used in nodejs |
| 32 | (and possibly elsewhere too). Unfortunately the standard package does |
| 33 | not expose enough API to do this efficiently, and trying all 4 possible |
| 34 | variants (standard/url, padded/raw) seemed wasteful. |