Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateType ¶
Types ¶
type ResultWrapper ¶
type ResultWrapper[T any] struct { Success bool `json:"success"` Errors []string `json:"errors"` Data T `json:"data"` }
func NewResultWrapperFailed ¶
func NewResultWrapperFailed[T any](e []string) ResultWrapper[T]
func NewResultWrapperSucceded ¶
func NewResultWrapperSucceded[T any](d T) ResultWrapper[T]
func NewResultWrapperSuccededEmpty ¶
func NewResultWrapperSuccededEmpty[T any]() ResultWrapper[T]
Click to show internal directories.
Click to hide internal directories.