V
V
v- death2015-08-14 14:53:26
go
v- death, 2015-08-14 14:53:26

How to pass value by key with map in text/template?

How to transfer information from a map to a topic?
Here is my map

elements := make(map[string]string)
    elements["H"] = "Hydrogen"
    elements["He"] = "Helium"
    elements["Li"] = "Lithium"

I didn't understand text/template at all

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
index0h, 2015-08-15
@vGrabko99

So figure out what's the problem? Read the help and follow it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question