Skip to content

How to use simple template funcion in ‘Raw String’? #2788

Answered by mvdan
Awadabang asked this question in Q&A
Discussion options

You must be logged in to vote

You have interpolations in CUE like "hello \(name)", but you also have templating which mimicks Go's text/template package, like "hello {{ .name }}": https://pkg.go.dev/cuelang.org/go/pkg/text/template@master

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Awadabang
Comment options

Answer selected by Awadabang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants