Skip to content

varolib/varorequest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

varorequest Go Report Card GoDoc

Motivations

This is a practice library to build request for a bank. The library is suppose to be minimalistic to avoid any type of bugs and unexpected behavior.

Golang version

varorequest is currently compatible with golang version from 1.12+.

Request Builder GoDoc

package main
  
import (
    "fmt"
    request "github.com/varolib/varorequest"
    "io/ioutil"
)

func main() {
    rb := request.RequestBuilder{}
    resp, err := rb.SetURL("https://google.com").Do()
    if err != nil {
        panic(err)
    }
    f, err := ioutil.ReadAll(resp.Body)
    if err != nil {
        panic(err)
    }
    fmt.Println(string(f))
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages