module
Version:
v0.1.3
Opens a new window with list of versions in this module.
Published: Aug 2, 2025
License: MIT
Opens a new window with license information.
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
¶
|
|
|
internal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.