command
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Feb 6, 2025
License: MIT
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Gofali
A simple URL shortener written in Go.

Run
- Grab the latest release
- Create
config.ini
- 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
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.