http

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	PATH = "path"
)

Variables

This section is empty.

Functions

func Parse

func Parse[T any](c *gin.Context, obj *T) (err error)

Parse is a function that parses request parameters into the provided struct

Types

type RequestType

type RequestType[T any] struct {
	// contains filtered or unexported fields
}

RequestType is a generic struct that holds the parsed request data

func NewRequestType

func NewRequestType[T any](data T) RequestType[T]

NewRequestType is a constructor function for RequestType

func (RequestType[T]) Data

func (r RequestType[T]) Data() T

Data returns the parsed request data

Jump to

Keyboard shortcuts

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