README ¶ Shorturl 中文文档 This sample is a API application based on beego. It has two API func: /v1/shorten /v1/expand Installation cd $GOPATH/src/samples/shorturl bee run Usage: # shortening url example http://localhost:8080/v1/shorten/?longurl=http://google.com { "UrlShort": "5laZG", "UrlLong": "http://google.com" } # expanding url example http://localhost:8080/v1/expand/?shorturl=5laZG { "UrlShort": "5laZG", "UrlLong": "http://google.com" } Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go Directories ¶ Show internal Expand all Path Synopsis controllers models Click to show internal directories. Click to hide internal directories.