util

package
v0.0.0-...-86f1c50 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(v bool) *bool

BoolPtr returns pointer to bool.

func BuildQueryParameters

func BuildQueryParameters(opts interface{}) (string, error)

BuildQueryParameters converts provided options struct to the string of URL parameters.

func BuildServiceEndpoint

func BuildServiceEndpoint(host, service, version string) string

BuildServiceEndpoint concatenates given params into service endpoint. It builds `HTTPS` endpoint by default. To overwrite it, add `http://` to host param.

func IntPtr

func IntPtr(v int) *int

IntPtr returns pointer to int.

func StringPtr

func StringPtr(v string) *string

StringPtr returns pointer to string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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