Skip to content

R1NC/servgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

servgo

Web services written in Golang.

Deploy service

  • go get github.com/R1NC/servgo;

  • Create a test.go file:

package main
	
import (
	"github.com/R1NC/servgo"
)
	
func main() {
	servgo.Run(8888)
}
  • go run test.go;

Send request

http://localhost:8888/api/book/search?q=abc&tag=def&start=0&count=20
http://localhost:8888/api/movie/search?q=abc&tag=def&start=0&count=20
http://localhost:8888/api/music/search?q=abc&tag=def&start=0&count=20
http://localhost:8888/api/weather/query?city=shanghai

About

Web services written in Golang.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages