https://github.com/m5lk3n/base64
Simply base64 as a web service in Golang.
https://github.com/m5lk3n/base64
base64 base64-decoding base64-encoding gin gin-gonic go golang
Last synced: 8 months ago
JSON representation
Simply base64 as a web service in Golang.
- Host: GitHub
- URL: https://github.com/m5lk3n/base64
- Owner: m5lk3n
- Created: 2025-04-14T19:53:09.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-04-14T21:19:12.000Z (9 months ago)
- Last Synced: 2025-04-15T15:16:10.906Z (8 months ago)
- Topics: base64, base64-decoding, base64-encoding, gin, gin-gonic, go, golang
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# base64
`base64` implemented as a web service in Golang.
Build:
```bash
make docker-build
```
Run:
```bash
docker run -d \
--restart unless-stopped \
-u "$(id -u):$(id -g)" \
-p 8080:8080 \
--name base64 \
lttl.dev/base64:0.1.0
```
Use:
```bash
curl -sX OPTIONS http://localhost:8080 | jq
{
"routes": [
"GET /spenc/:string - Base64-encodes the string with a newline appended",
"GET /encode/:string - Encodes the string in base64",
"GET /decode/:string - Decodes a base64 string",
"GET /health - Provides basic health info"
],
"status": 200
}
```
Stop:
```bash
docker stop base64
docker rm -f base64
```