valyala / fasttemplate

Simple and fast template engine for Go
MIT License
846 stars 81 forks source link

is map[string]string more effecient than map[string]interface{} ? #26

Open kiseeb opened 1 year ago

kiseeb commented 1 year ago

In my application. all my template subsitutions are strings. I want to improve the templating engine more, such that it won't assert the interface or somehow, and directly stream the string as is.

since all my database read values are in strings. I want to use map[string]string insead if it would increase the subsitution effieciency more.

How is this approach possible ?

thank you in advance