Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Put ¶
Put This method implements a way to put dotted keys into a M while ensuring they don't override each other. For example:
a := M{} safemapstr.Put(a, "com.docker.swarm.task", "x") safemapstr.Put(a, "com.docker.swarm.task.id", 1) safemapstr.Put(a, "com.docker.swarm.task.name", "foobar")
Will result in `{"com":{"docker":{"swarm":{"task":{"id":1,"name":"foobar","value":"x"}}}}}`
Put detects this scenario and renames the common base key, by appending `.value`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.