Discover Packages
github.com/FirePing32/go-carbon
command
module
Version:
v0.0.0-...-ffaa867
Opens a new window with list of versions in this module.
Published: Jan 5, 2023
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
GO-Carbon
Convert source code from GH gists into shareable images.
Inspired from the Carbon project.
This project is an effort to build a REST API implimentation of the same in Go. It does not completely work as the original project, and many parameters are yet to be added.
Build
I use air for hot reloading.
Otherwise:
go build -o server . && ./server
Query Params
Endpoint: /api
Query Param
Description
gistid
Gist ID of the file
fsize
Font size
fcolor
Font color
bgcolor
Background color
Status Codes
404
: Invalid Gist ID
400
: Missing query params
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.