Skip to content

spark-golang/spark-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spark-url

Yet Another short url base on golang

Base Use

create a short url

## crete a short url
curl -X "POST" "http://127.0.0.1:9999/local/url_create" \
     -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
     --data-urlencode "url=https://golangcaff.com/docs/the-way-to-go/for-structure/37"

request a short url

url http://127.0.0.1:9999/Mw    

Use gRpc Demo

  1. gRpc server run
 go run grpc/grpc/server.go
  1. Run client
go run main.go
  1. Request
curl -X "POST" "http://127.0.0.1:9999/hello" \
     -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
     --data-urlencode "name=Panda"

Thanks

Tim
Gin
Golang
Google

About

Yet Another short url base on golang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages