Skip to content

Checks the validity of Golang Jet Engine Templates from the command line

Notifications You must be signed in to change notification settings

quocduongpy/check-golang-templates

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Command line tool to check the validity of Jet Golang Templates

Checks the validity of jet templates and prints the errors if found in stderr.

Could me useful to add it to your build pipelines to make sure that all your templates are valid.

Usage

Assuming that your templates are in folder /home/user/templates

Option 1 (Use Dockerhub image)
docker run -v /home/user/templates:/templates gosom/check-golang-templates check-golang-templates -folder /templates
Option 2 (Download binary [ Linux Only ])

Download the latest binary from the releases: https://github.com/gosom/check-golang-templates/releases/tag/v1.0.0

Make it executable if needed and run

check-golang-templates -folder /home/user/templates

Option 3(Build on your own)
git clone [email protected]:gosom/check-golang-templates.git
cd check-golang-template
go mod download
go install

check-golang-templates -folder /home/user/templates

Notes

if you want to check a specific template(s) you can use the -pattern flag.

About

Checks the validity of Golang Jet Engine Templates from the command line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 88.4%
  • Dockerfile 11.6%