pm

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NULL = ""
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Pm

type Pm map[string]any

func NewPm

func NewPm(data map[string]any) Pm

func (Pm) Delete

func (pm Pm) Delete(keys ...string) Pm

func (Pm) EncodeURL

func (pm Pm) EncodeURL() string

编码URL

func (Pm) Get

func (pm Pm) Get(key string) any

获取参数,同 GetString()

func (Pm) GetFloat64

func (pm Pm) GetFloat64(key string) float64

获取float64。其他float再转一下

func (Pm) GetInt

func (pm Pm) GetInt(key string) int

获取int。其他int自己再转一下

func (Pm) GetInt64

func (pm Pm) GetInt64(key string) int64

func (Pm) GetPbAny

func (pm Pm) GetPbAny(key string) *structpb.Value

func (Pm) GetString

func (pm Pm) GetString(key string) string

获取参数转换string

func (Pm) GetUint32

func (pm Pm) GetUint32(key string) uint32

func (Pm) Set

func (pm Pm) Set(key string, value any) Pm

设置参数

func (Pm) SetPm

func (pm Pm) SetPm(key string, f func(b Pm)) Pm

Jump to

Keyboard shortcuts

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