resume

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 8 Imported by: 0

README ¶

📄 Resume

Create an online resume that can be accessed by a curl command.

📸 Screenshot

Screenshot

📦 Installation

Binary installation

Download a compatible binary for your system. For convenience, place resume in a directory where you can access it from the command line.

Via Go
$ go install github.com/jpbruinsslot/resume/cmd/resume@latest
Via Docker
$ docker build  -t resume .

💻 Usage

Command line
$ resume \
    -port 8080 \
    -path /resume \
    -user show \
    -pass me
$ curl http://localhost:8080/resume -u show:me
Docker
$ docker run -p 8080:8080 \
    --env PORT=8080 \
    --env PATH=/resume \
    --env USER=show \
    --env PASS=me \
    -v path-to-resume.tmpl:/resume.tmpl \
    resume
$ curl http://localhost:8080/resume -u show:me

🔧 Configuration

Arguments

You'll be able to pass some arguments to the application

Argument Description
port port to serve on (default: 80)
path optional url path (default: /)
template filename of template (default: resume.tmpl)
user username used for authentication (default: "")
pass password used for authentication (default: "")

Templating

The resume.tmpl has an example of how you could structure your resume. To see what colors you'll be able to use, inspect the colors.go file.

For more color styles, you can use the function {{.ColorCode "your-style-here"}} in the template. See https://github.com/mgutz/ansi#style-format for the style format.

Documentation ¶

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

func Authenticated ¶

func Authenticated(r *http.Request, u, p string) bool

Authenticated is an extremely simple authentication

func InitServer ¶

func InitServer(flgPort, flgPath, flgTemplate, flgUser, flgPass string)

InitServer starts the resume server

Types ¶

type Colors ¶

type Colors struct {
	Black        string
	Red          string
	Green        string
	Yellow       string
	Blue         string
	Magenta      string
	Cyan         string
	White        string
	LightBlack   string
	LightRed     string
	LightGreen   string
	LightYellow  string
	LightBlue    string
	LightMagenta string
	LightCyan    string
	LightWhite   string
	Bold         string
	Underline    string
	Blink        string
	Inverse      string
	Bright       string
	Reset        string
}

func GetANSIColors ¶

func GetANSIColors() Colors

func (Colors) ColorCode ¶

func (c Colors) ColorCode(style string) string

Directories ¶

Path Synopsis
cmd
resume command

Jump to

Keyboard shortcuts

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