utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertArrayByte

func ConvertArrayByte(data interface{}) []byte

Convert the input data to a byte array

func MakeHTTPCall

func MakeHTTPCall(method, url string, headers *http.Header, jsonData []byte) ([]byte, error)
It makes an HTTP call and returns the response body:

* ${ @method } The method to use in the call, e.g., http.MethodGet * ${ @url } URL to call * ${ @header } Headers to set in the request * ${ @jsonData } The JSON to send to the destination

func StringInSlice

func StringInSlice(a string, list []string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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