Skip to content

CrimsonAIO/ordered-form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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
}

About

Form that maintains its order

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages