Categorygithub.com/codagelabs/restclient
module
1.1.0
Repository: https://github.com/codagelabs/restclient.git
Documentation: pkg.go.dev

# README

restclient

Package restclient implements a http.Client and make http on behalf of http.Client to their respective Server.

###Install With a correctly configured Go toolchain:

    go get github.com/codagelabs/restclient

###Examples

    func main() {
    		
    		type Resp struct {
    		}
    
    		var url = ""
    
    		resp := Resp{}
    		var status int
    
    		err := request.NewRestClient(&http.Client{}).NewRequest().GetResponseAs(&resp).GetResponseStatusCodeAs(&status).GET(url)
    		if err != nil {
    			fmt.Println(err)
    		}
    
    		fmt.Println(resp)
    		fmt.Println(status)
    
    	}

# Packages

No description provided by the author
Package mocks is a generated GoMock package.
No description provided by the author