utils

package
v0.0.0-...-6ad305b Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

utility functions used in various packages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContent

func GetContent(url string) (string, error)

Makes a Get request with Header ("Accept: text/plain")

func GetContentJson

func GetContentJson(url string) (interface{}, error)

Makes a Get request with Header ("Accept: text/json")

func GetWithAccept

func GetWithAccept(url string, header http.Header) ([]byte, error)

Make a Get request, with the option to specify the header

Types

This section is empty.

Jump to

Keyboard shortcuts

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