Help us shape the future of Go! Take the 2026 Go Developer Survey

forgeutils

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextAddID

func ContextAddID(ctx context.Context) context.Context

func ContextAddToRequest

func ContextAddToRequest(r *http.Request) *http.Request

func ContextGetID

func ContextGetID(ctx context.Context) string

func ContextGetRequest

func ContextGetRequest(ctx context.Context) *http.Request

func EnvironmentSetValueInFile

func EnvironmentSetValueInFile(filePath, key string, value string)

func UnreachableError

func UnreachableError(err error)

Types

type JSONResponse added in v0.0.27

type JSONResponse struct {
	ContextID string `json:"context_id"`
	Success   bool   `json:"success"`
	Message   string `json:"message"`
	Data      any    `json:"data"`
}

Jump to

Keyboard shortcuts

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