package
module
Version:
v0.0.0-...-23b40fe
Opens a new window with list of versions in this module.
Published: Apr 8, 2017
License: GPL-3.0
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
¶
ursh
Study case: URL shortener service
Documentation
¶
type Config struct {
Storage struct {
Host string
Port int
User string
Password string
}
ExpireTime int `yaml:"expire_time"`
UIPort int
}
Config is a configuration struct
Parse parses the config file
Storage struct
Get long URL using short URL
Put URL struct to Storage
URL is a struct to store short URLs and all the other stuff
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.