Discover Packages
github.com/dwikng/gofali
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: ? 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.
Opens a new window with list of known importers.
README
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
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.