json2base64

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

json2base64

Here is Go tool for decode json file to base64 string

Work only with valid JSON files

Usage

-f /path/to/input.json Path to the credentials file (default credentials.json)

-o /path/to/out.64 Path to save the base64 encoded output

-v Show application version


Examples

Encoded credentials.json file with content {"test":"test"} put result to stdout

json2base64
# eyJ0ZXN0IjoidGVzdCJ9

Encoded some_file.json file with content {"test":"test"} put result to stdout

json2base64 -f ./some_file.json
# eyJ0ZXN0IjoidGVzdCJ9

Encoded some_file.json file save result to some_file.b64 file

json2base64 -f ./some_file.json -o ./some_file.b64
# Base64 encoded content saved to some_file.b64

Print app version

json2base64 -v
# 1.0.0

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL