restvalues

package
v0.0.0-...-e2a80a6 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Decoder = schema.NewDecoder()

Decoder url.Values解码器。需要结构体字段带schema标签。

View Source
var Encoder = schema.NewEncoder()

Encoder url.Values编码器。需要结构体字段带schema标签。

Functions

func Decode

func Decode(dest interface{}, str string) error

Decode 解码表单/查询字符串。支持*url.Values和带schema标签的结构体指针。

func Encode

func Encode(v interface{}) (string, error)

Encode 编码表单/查询字符串,支持url.Values和带schema的结构体和结构体指针。

Types

This section is empty.

Jump to

Keyboard shortcuts

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