Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips & Traps

There are 2 implementations of ordered map in Golang orderedmap and go-ordered-map . orderedmap is more popular (based on GitHub statistics) and thus is preferred.

error executing "/usr/local/go/bin/go build -buildmode=plugin" in directory "/home/dclong/go/src/gomacro.imports/gomacro_pid_7244/import_1": exit status 2
repl.go:1:17: expected ';', found '['
repl.go:1:37: expected ']', found ','

References

🟢 encoding/json/v2: support preservation of object key ordering encoding/json: no way to preserve the order of map keys