feedback

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package feedback is a standard contact form.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLocalizationMessages added in v0.1.4

func AddLocalizationMessages(b *i18n.Bundle) (err error)

func New

func New(sender Sender) (get, post http.Handler, err error)

func NewJSON added in v0.1.3

func NewJSON(sender Sender, withOptions ...htadaptor.Option) (http.Handler, error)

Types

type Letter added in v0.1.3

type Letter struct {
	Name    string
	Phone   string
	Email   string
	Message string
}

func (*Letter) Validate added in v0.1.3

func (l *Letter) Validate(ctx context.Context) error

func (*Letter) ValidateWithLocale added in v0.1.3

func (l *Letter) ValidateWithLocale(locale *i18n.Localizer) error

type Sender

type Sender func(context.Context, *Letter) error

Jump to

Keyboard shortcuts

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