Total Pageviews

Sunday, 25 November 2018

一个基于go的URL shortener程序:shorten

Fast and flexible URL shortener。
Shorten is a URL shortening service with a pluggable backend and customizable short URL generation strategies, with the ability to record hits (ie. clicks).
The service is written in Go and has built-in support for the Redis backend.

Quickstart

Install the package:
go get github.com/senko/shorten
Shorten a link using a command-line tool:
shorten -shorten http://example.com/
Expand a link using a command-line tool:
shorten -expand <short-key>
Start a HTTP microservice for link expansion:
shortserver -listen :9000
from https://github.com/senko/shorten
---------
相关帖子:
https://briteming.blogspot.com/2018/09/crzim.html (一个域名缩短服务的程序-CRZ.im)

No comments:

Post a Comment