gofali

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Gofali

A simple URL shortener written in Go.

Gofali img

Run

  1. Grab the latest release
  2. Create config.ini
  3. Run gofali-<platform> -config config.ini

Configuration

You can configure the application using flags or a config.ini file. Below are the available options:

Flags
Flag Default Value Description
-host 127.0.0.1 Server host
-port 8080 Server port
-mysql-connect gofali:gofali@tcp(127.0.0.1:3306)/gofali MySQL connection string
-admin-path admin Admin path (example.com/@admin/)
-root-redirect (empty) Redirect path for the root URL
-slug-length 8 Length of the generated slug
Example config.ini
host = 127.0.0.1
port = 8080

mysql-connect = gofali:gofali@tcp(127.0.0.1:3306)/gofali

admin-path = BnTiC5DZ3L
root-redirect = https://google.com
slug-length = 16

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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