shared

package
v0.0.0-...-b018416 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewID

func NewID(prefix string) string

NewID generates a new ID with the given product ID and resource ID prefix

func PanicIfErr

func PanicIfErr(err error)

PanicIfErr panics if the given error is not nil

func SendPostJSON

func SendPostJSON(url string, payload map[string]any) (string, error)

SendPostJSON sends a POST request to the given URL with the given payload

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