with variables in the text/template format) as user input and have to validate it. At the moment I am just trying to execute it, if Execute() returns an error I say it's invalid (like wrong variables etc). Is there a better method I didn't find yet? (I found that the package has a checkCanParse() function, which isn't exported)
what does “better” mean?!
Обсуждают сегодня