QTC(1)
β¨ QTC(1) β¨
okay bestie, welcome to the qtc page π that's the manual name btw, and yes it's the group chat you wanna be in.
πΈ NAME πΈ
qtc β template compiler (converter) for quicktemplate. yep, that's the whole vibe. it takes your pretty templates and turns them into Go code. iconic behavior fr fr π
π SYNOPSIS π
qtc [option...]
that's it. that's the whole summoning ritual. no positional args to stress about, just options π
π¦ DESCRIPTION π¦
so like. the qtc tool converts quicktemplate files into Go code. by default these files have a .qtpl extension, no cap.
it can be called directly, or via go generate β and lowkey the go generate route is the preferred form. the way that's the endorsed method?? yeah. do that one π«Ά
π OPTIONS π
-dir stringβ path to the directory with template files to compile. only files with the-extextension get compiled, see-extfor the deets.
the compiler recursively processes ALL the subdirectories. like, every single one, it's committed π and the compiled template files get placed near the original file with .go extension added.
default value is "." β¨
-ext stringβ only files with this extension are compiled.
default is "qtpl".
-file stringβ path to the template file to compile. heads up: options-dirand-extare ignored if file is set. like, they simply do not get a say π and the compiled template file will be placed near the original file with.goextension added.-skipLineCommentsβ do not write line comments.
β lowkey reminder in case you skimmed (no judgement, I do it too):-dirand-extget fully ignored the moment you set-file. so don't be out here setting all three and wondering why nothing makes sense π
okay and for the sign-off π
this whole thing is from qtc version 1.8.0+ds1-4, dated 2026-05-19. periodt. go compile something cute bestie, you got this πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: qtc 1.8.0+ds1-4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms