httpinput

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package httpinput parses common scalar values received through HTTP path and query parameters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Date

func Date(field, value string) (time.Time, error)

Date parses a calendar date in YYYY-MM-DD format.

func Month

func Month(field, value string) (time.Time, error)

Month parses a calendar month in YYYY-MM format and returns its first day.

func OptionalBool

func OptionalBool(field, value string) (*bool, error)

OptionalBool parses true or false and returns nil when value is empty.

func PositiveInt32

func PositiveInt32(field string, value string, fallback int32) (int32, error)

PositiveInt32 parses a strictly positive int32 value or returns fallback when value is empty.

func PositiveInt64

func PositiveInt64(field, value string) (int64, error)

PositiveInt64 parses a strictly positive int64 value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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