MCPcopy Create free account
hub / github.com/pquerna/ffjson / Swap

Method Swap

inception/inception.go:97–97  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

95func (p sortedStructs) Len() int { return len(p) }
96func (p sortedStructs) Less(i, j int) bool { return p[i].Name < p[j].Name }
97func (p sortedStructs) Swap(i, j int) { p[i], p[j] = p[j], p[i] }
98func (p sortedStructs) Sort() { sort.Sort(p) }
99
100func (i *Inception) generateCode() error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected