poster

package module
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 2 Imported by: 1

README

Poster

A reverse http utility tool to easily send requests to other servers.

go get github.com/Alvarios/poster

Post

Send a post request from go, in application/json format.

package my_package

import "github.com/Alvarios/poster"

func main() {
    payload := map[string]interface{}{
        "message": "hello from go",
    }

    // payload has to be JSON friendly
    res, err := poster.Post("https://www.domain.com/url", payload)
}

Get

Get request to a http server.

package my_package

import "github.com/Alvarios/poster"

func main() {
    res, err := poster.Get("https://www.domain.com/url")
}

2020 Kushuh - MIT license

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Get = get.Get
View Source
var Post = post.Post

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL