filegen

module
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2025 License: MIT

README

filegen

filegen - is console application for generate files of your templates

Install as:

go install github.com/artarts36/filegen/cmd/main

Usage example

config.yaml

vars:
  city: Moscow

files:
  - template_path: user.tmpl
    output_path: 'user_{{ vars.local.user.id }}.yaml'
    vars:
      user:
        id: 1
        name: "John"

user.tmpl

user:
    id: {{ vars.local.user.id }}
    name: {{ vars.local.user.name }}
    city: {{ vars.global.user.city }}

Run filegen config.yaml

Directories

Path Synopsis
internal
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL