stdpart

package
v0.0.0-...-af76324 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFormValidation = errors.New("form input is invalid")
)

Functions

func ContactForm

func ContactForm(categories []string) *part.Part

func Err

func Err(base error, reason string) error

func HandleContactForm

func HandleContactForm(validate, handle func(ContactFormResponse) error) http.Handler

func PrintContact

func PrintContact(resp ContactFormResponse) error

Types

type ContactFormResponse

type ContactFormResponse struct {
	ID       string
	Name     string
	Contact  string
	Category string
	Content  string
}

Jump to

Keyboard shortcuts

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