querystring

package module
v0.0.0-...-e0db1b3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: MIT Imports: 5 Imported by: 0

README

querystring

A querystring parsing and stringifying go library. Golang序列化和解析querystring库.

Features

  • stringify any to querystring
  • parse querystring

Using

import (
  "github.com/feiin/querystring"
)

//obj support  struct , map , interface{}
qs, err := querystring.Marshal(obj)
fmt.Printf("qs:%s",qs) //a=b&c=d.....

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(obj interface{}) (string, error)

Marshal nested struct or map to url query strings

func Stringify

func Stringify(obj interface{}) (string, error)

Stringify

Types

This section is empty.

Jump to

Keyboard shortcuts

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