Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[post] How to use go's builtin template #54

Open
at15 opened this issue Jul 17, 2020 · 0 comments
Open

[post] How to use go's builtin template #54

at15 opened this issue Jul 17, 2020 · 0 comments
Assignees
Labels

Comments

@at15
Copy link
Member

at15 commented Jul 17, 2020

Type

  • request post from @at15

Related

Description

Go's built in text/template and html/template is pretty useful for generating code, custom output (e.g. docker, kubectl, helm).
However every time I need to use it I need to learn it again ... this post should list common syntax (and pitfalls)

  • reference variables
  • writing for loop
  • custom function

And common places to use go template

  • code generator
  • docker
  • helm

Update

  • 2020-08-07 Add usage section
@at15 at15 added the area/go label Jul 17, 2020
@at15 at15 self-assigned this Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant