attrutil

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(attrs map[string]string, key string) bool

Bool reports whether attrs[key] is the literal string "true".

func Has

func Has(attrs map[string]string, key string) bool

Has reports whether key is present at all (for bare boolean flags).

func Parse

func Parse(s string) map[string]string

Parse extracts key="value", key='value', and bare flags from a space-separated attribute string. Bare flags are stored with an empty-string value; use Has to test presence.

Types

This section is empty.

Jump to

Keyboard shortcuts

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