Discover Packages
github.com/rogalev/pm-module-sdk-go
httpinput
package
Version:
v0.11.0
Opens a new window with list of versions in this module.
Published: Sep 21, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package httpinput parses common scalar values received through HTTP path
and query parameters.
func Date(field, value string) (time.Time, error)
func Month(field, value string) (time.Time, error)
func OptionalBool(field, value string) (*bool, error)
func PositiveInt32(field string, value string, fallback int32) (int32, error)
func PositiveInt64(field, value string) (int64, error)
Date parses a calendar date in YYYY-MM-DD format.
Month parses a calendar month in YYYY-MM format and returns its first day.
OptionalBool parses true or false and returns nil when value is empty.
PositiveInt32 parses a strictly positive int32 value or returns fallback
when value is empty.
PositiveInt64 parses a strictly positive int64 value.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.