internal

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultHeaders

func DefaultHeaders() map[string]string

func E

func E(code int) func(*string) APIResponse

func S

func S(code int) func(any) APIResponse

Types

type APIResponse

type APIResponse struct {
	Status Status `json:"status"`
	Data   *any   `json:"data,omitempty"`
	Error  *Error `json:"error,omitempty"`
}

func ENil

func ENil(code int) APIResponse

type Error

type Error struct {
	Message string `json:"message,omitempty"`
}

type Status

type Status struct {
	Code int  `json:"code"`
	Ok   bool `json:"ok"`
}

Jump to

Keyboard shortcuts

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