guppy

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package guppy builds Guppy responses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {
	text.Writer
	// contains filtered or unexported fields
}

func Wrap

func Wrap(w io.Writer, seq int) *Writer

Wrap wraps an io.Writer with a Guppy response writer.

func (*Writer) Clone

func (w *Writer) Clone(w2 io.Writer) text.Writer

func (*Writer) Error

func (w *Writer) Error()

func (*Writer) OK

func (w *Writer) OK()

func (*Writer) Redirect

func (w *Writer) Redirect(link string)

func (*Writer) Redirectf

func (w *Writer) Redirectf(format string, a ...any)

func (*Writer) Status

func (w *Writer) Status(code int, meta string)

func (*Writer) Statusf

func (w *Writer) Statusf(code int, format string, a ...any)

Jump to

Keyboard shortcuts

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