util

package
v0.0.0-...-f8b343f Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error)

func CreateMd5Hash

func CreateMd5Hash(data string) string

func FileExists

func FileExists(path string) (bool, error)

func HttpDelete

func HttpDelete(url string) []byte

func HttpGet

func HttpGet(url string) []byte

func HttpPost

func HttpPost(url string, data string, content_type string) []byte

func HttpPut

func HttpPut(url string, data string, content_type string) ([]byte, error)

Types

type ApiResponse

type ApiResponse struct {
	Success map[string]interface{} `json:"success,omitempty"`
	Error   ApiResponseError       `json:"error,omitempty"`
}

type ApiResponseError

type ApiResponseError struct {
	Type        uint   `json:"type"`
	Address     string `json:"address"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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