gnormal / gnorm

A database-first code generator for any language
https://gnorm.org
Other
488 stars 40 forks source link

"index" template function shadows built-in function #95

Closed dfilipovic39 closed 5 years ago

dfilipovic39 commented 6 years ago

Hi,

it seems that custom "index" function overrides golang template "index" function for accessing slice elements. Maybe a rename would be OK solution?

natefinch commented 6 years ago

Hmm, yes, absolutely a problem. I have a PR up that namespaces the string functions, that'll fox it. I'll get that landed ASAP.

On Wed, Feb 21, 2018, 4:07 PM tarqe39 notifications@github.com wrote:

Hi,

it seems that custom "index" function overrides golang template "index" function for accessing slice elements. Maybe a rename would be OK solution?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gnormal/gnorm/issues/95, or mute the thread https://github.com/notifications/unsubscribe-auth/ADCcyHY4zzU32bejLkyk0s1HSGdiQuX1ks5tXIV1gaJpZM4SOVMv .

natefinch commented 5 years ago

Fixed with #106