ice

command module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: MIT Imports: 4 Imported by: 0

README

ice

介绍

go framework

软件架构

软件架构说明 代写

安装教程

go get -v -u gitee.com/handashuai/ice

使用说明
  1. http url query
  2. http header

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package httpheader implements encoding of structs into http.Header fields.
Package httpheader implements encoding of structs into http.Header fields.
Package httpquery struct 编码成 url query 的字符串 As a simple example: type Options struct { Query string `url:"q"` ShowAll bool `url:"all"` Page int `url:"page"` } opt := Options{ "foo", true, 2 } v, _ := query.Values(opt) fmt.Print(v.Encode()) // will output: "q=foo&all=true&page=2" The exact mapping between Go values and url.Values is described in the doc for the Values() function.
Package httpquery struct 编码成 url query 的字符串 As a simple example: type Options struct { Query string `url:"q"` ShowAll bool `url:"all"` Page int `url:"page"` } opt := Options{ "foo", true, 2 } v, _ := query.Values(opt) fmt.Print(v.Encode()) // will output: "q=foo&all=true&page=2" The exact mapping between Go values and url.Values is described in the doc for the Values() function.

Jump to

Keyboard shortcuts

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