utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultPostForm

func DefaultPostForm(c echo.Context, key, defaultValue string) string

DefaultPostForm 获取 POST 表单参数,如果不存在则返回默认值

func DefaultQuery

func DefaultQuery(c echo.Context, key, defaultValue string) string

DefaultQuery 获取查询参数,如果不存在则返回默认值

func DefaultQueryInt

func DefaultQueryInt(c echo.Context, key string, defaultValue int) int

DefaultQueryInt 获取整数查询参数,如果不存在则返回默认值

func GetLocalIP

func GetLocalIP() string

GetLocalIP 获取本机IP

func IsNetworkAvailable

func IsNetworkAvailable() bool

IsNetworkAvailable 检查网络是否可用

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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