utils

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeysToLower

func KeysToLower(q url.Values) url.Values

KeysToLower convert all the keys to LowerCase

func KeysToUpper

func KeysToUpper(q url.Values) url.Values

KeysToUpper convert all the keys to UpperCase

func StripDuplicateAttr added in v0.2.0

func StripDuplicateAttr(attr []xml.Attr) []xml.Attr

StripDuplicateAttr removes the duplicate Attributes from a []Attribute

Types

type XMLAttribute added in v0.2.0

type XMLAttribute []xml.Attr

XMLAttribute wrapper around the array of xml.Attr

func (*XMLAttribute) UnmarshalXML added in v0.2.0

func (xmlattr *XMLAttribute) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

UnmarshalXML func for the XMLAttr struct

Jump to

Keyboard shortcuts

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