package util
import "github.com/aws/aws-sdk-go-v2/private/util"
Index ¶
- func Capitalize(s string) string
- func GoFmt(buf string) string
- func PrettyPrint(v interface{}) string
- func SortXML(r io.Reader) string
- func SortedKeys(m map[string]interface{}) []string
- func Trim(s string) string
Functions ¶
func Capitalize ¶
Capitalize capitalizes the first character of the string.
func GoFmt ¶
GoFmt returns the Go formated string of the input.
Panics if the format fails.
func PrettyPrint ¶
func PrettyPrint(v interface{}) string
PrettyPrint generates a human readable representation of the value v. All values of v are recursively found and pretty printed also.
func SortXML ¶
SortXML sorts the reader's XML elements
func SortedKeys ¶
SortedKeys returns a sorted slice of keys of a map.
func Trim ¶
Trim removes all leading and trailing white space.
All consecutive spaces will be reduced to a single space.
Source Files ¶
- Version
- v0.24.0
- Published
- Jul 22, 2020
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 1 minute ago –
Tools for package owners.