package ordered
Import Path
github.com/d2lang/mathjax-go/internal/ordered (on go.dev)
Dependency Relation
imports 2 packages, and imported by 2 packages
Involved Source Files
Package ordered provides deterministic insertion-ordered string maps. They
model the object-key and DOM-attribute ordering observable in MathJax 3.2.2.
Package-Level Type Names (only one)
Type Parameters:
V: any
Map is an insertion-ordered map with string keys. Updating a key preserves
its original position; deleting and reinserting it appends it at the end.
The zero value is ready for use.
Clone returns an independent shallow copy.
Delete removes key and reports whether it was present.
Get returns the value and whether key is present.
Has reports whether key is present.
JavaScriptKeys returns keys in Object.keys order: canonical array indices
first in numeric order, then the remaining keys in insertion order.
Keys and Range retain insertion order for DOM attributes and other callers.
Keys returns a copy of the keys in insertion order.
Len returns the number of entries.
Range calls yield in insertion order until it returns false.
Set inserts or updates key.
func New[V]() *Map[V]
func (*Map)[V].Clone() *Map[V]
func github.com/d2lang/mathjax-go/internal/mml.(*Attributes).Defaults() *Map[mml.Property]
func github.com/d2lang/mathjax-go/internal/mml.(*Attributes).Explicit() *Map[mml.Property]
func github.com/d2lang/mathjax-go/internal/mml.(*Attributes).Globals() *Map[mml.Property]
func github.com/d2lang/mathjax-go/internal/mml.(*Attributes).Inherited() *Map[mml.Property]
func github.com/d2lang/mathjax-go/internal/mml.(*Factory).Globals() *Map[mml.Property]
func github.com/d2lang/mathjax-go/internal/mml.NewAttributes(defaults, global *Map[mml.Property]) *mml.Attributes
func github.com/d2lang/mathjax-go/internal/mml.NewNode(kind string, defaults, global *Map[mml.Property], children ...*mml.Node) *mml.Node
func github.com/d2lang/mathjax-go/internal/mml.(*Attributes).SetList(list *Map[mml.Property])
Package-Level Functions (only one)
Type Parameters:
V: any
New returns an initialized empty map.
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |