{"id":18712768,"url":"https://github.com/apexskier/go-template-validation","last_synced_at":"2025-04-12T11:54:23.027Z","repository":{"id":52382834,"uuid":"244181360","full_name":"apexskier/go-template-validation","owner":"apexskier","description":"Visual, web based go template validation","archived":false,"fork":false,"pushed_at":"2021-09-26T15:33:01.000Z","size":63,"stargazers_count":14,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-26T06:41:46.621Z","etag":null,"topics":["go","golang","template","tool","validation"],"latest_commit_sha":null,"homepage":"https://camlittle.com/go-template-validation","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apexskier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-01T16:14:59.000Z","updated_at":"2024-10-16T16:09:09.000Z","dependencies_parsed_at":"2022-08-22T14:40:53.791Z","dependency_job_id":null,"html_url":"https://github.com/apexskier/go-template-validation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apexskier%2Fgo-template-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apexskier%2Fgo-template-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apexskier%2Fgo-template-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apexskier%2Fgo-template-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apexskier","download_url":"https://codeload.github.com/apexskier/go-template-validation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248565052,"owners_count":21125415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","template","tool","validation"],"created_at":"2024-11-07T12:43:42.401Z","updated_at":"2025-04-12T11:54:23.003Z","avatar_url":"https://github.com/apexskier.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go template validation\n\nWhen working with the [`\"text/template\"`](https://golang.org/pkg/text/template/) and [`\"html/template\"`](https://golang.org/pkg/html/template/) packages, I often have a hard time understanding go's errors, especially when they're inline in code. This is a simple tool to visually show where validation errors are happening.\n\nTo use, choose a file or insert your template code directly. You can add mock data in the form of JSON.\n\n\u003cimg width=\"544\" alt=\"Go template validator - example output\" src=\"https://user-images.githubusercontent.com/329222/126074853-d09d7dc5-20e9-45f2-ae77-ce74d9ce5cd8.png\"\u003e\n\n## Features\n\n* Show errors at the relavent line/character\n* Recovery from unknown function errors\n* Recovery from missing value for command errors\n* Some auto-handling of required data\n* Discover character position of misunderstood tokens\n\n## Goals\n\n* Find as many issues as possible. The default package bails out at the first error (which makes sense at runtime), but often you'll fix one error only to have to track down the next.\n* (at this point) Don't rewrite/maintain a fork of [`\"text/template/parse\"`](https://golang.org/pkg/text/template/parse/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapexskier%2Fgo-template-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapexskier%2Fgo-template-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapexskier%2Fgo-template-validation/lists"}