httpclient

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package httpclient provides a simple HTTP GET function for statusline API calls.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(url string, headers map[string]string, timeout time.Duration) ([]byte, error)

Get performs an HTTP GET request with context timeout.

Types

type GetFn

type GetFn func(url string, headers map[string]string, timeout time.Duration) ([]byte, error)

GetFn is the type for HTTP GET functions.

Jump to

Keyboard shortcuts

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