env

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package env loads named variable sets from an httpfly.env.json file, so the same .http file can target different backends (dev, staging, prod, ...) without editing it -- select one with "-env <name>".

Index

Constants

View Source
const FileName = "httpfly.env.json"

FileName is the environment file httpfly looks for, alongside the .http file being run.

Variables

This section is empty.

Functions

func Load

func Load(dir, name string) (map[string]string, error)

Load reads FileName from dir and returns the variables for the environment named name, with "shared" merged in as defaults.

Types

This section is empty.

Jump to

Keyboard shortcuts

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