datatype_parser

package
v0.0.0-...-ac058c7 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParserInterface

type ParserInterface interface {
	ParseParam(context *gin.Context, param string, parsingType ParsingType) (interface{}, rest_errors.RestError)
	ParseQuery(context *gin.Context, query string, parsingType ParsingType) (interface{}, rest_errors.RestError)
}
var (
	DataTypeParser ParserInterface = &parser{}
)

type ParsingType

type ParsingType int
const (
	Int ParsingType = iota
	Float
	Bool
)

Jump to

Keyboard shortcuts

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