The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
kikyou12138

什么是 go template?

  •  
  •   kikyou12138 · Jun 4, 2022 · 3506 views
    This topic created in 1619 days ago, the information mentioned may be changed or developed.

    最新写 k8s 的 helm chart ,说 chart 语法就是 go template 语法,想问下 go template 怎么开始学习?

    3 replies  •  2022-06-05 02:23:03 +08:00
    MeetTheFuture
    MeetTheFuture
    Jun 4, 2022
    2
    模板引擎 看官网的文档
    Hieast
    Hieast
    Jun 5, 2022
    3
    建议不要深究,照着生成的 helper 里那几种写法抄抄就好了,具体的语法的可迁移性很差,换一个模版又得重新查。
    控制流的相关概念(表达式、顺序、选择、迭代、递归)才是最具有可迁移性的,用到的时候到文档里找就可以了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4496 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 06:11 · PVG 14:11 · LAX 22:11 · JFK 01:11
    ♥ Do have faith in what you're doing.