The x packages parse the .go files and work on the parsed tree of a 
specified package - so they see only what is visible at the go compiler 
level, and never see what is in templates that are outside of the go files.

Here is a StackOverflow on this topic, which suggests a library that does 
support extraction from templates.

https://stackoverflow.com/questions/62245560/i18n-support-for-golang-web-application-html-templates

Here is the library recommended in that question: 
https://github.com/vorlif/spreak

Here is the relevant bullet point from the Readme:

   - Powerful extractor <https://github.com/vorlif/xspreak#xspreak> for 
   strings to simplify the localization process (with *support for 
   templates*)

Hope that helps,
Howard

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/72b43b45-aaed-4f55-af11-704f32d04de9n%40googlegroups.com.

Reply via email to