Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 319 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 319 Bytes

ordered-form

A form that maintains its order.

Usage

package main

import (
	"fmt"
	"github.com/CrimsonAIO/ordered-form"
)

func main() {
	form := new(orderedform.Form)
	form.Add("foo", "a")
	form.Add("bar", "b")
	form.Add("baz", "a")
	fmt.Println(form.URLEncode())

	// Prints:
	// foo=a&bar=b&baz=a
}