Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 635 Bytes

File metadata and controls

24 lines (21 loc) · 635 Bytes

const generator examples

this is examples for usage const generator in your project

Usage of const_generator:
  -output string
        path to output file (default "internal/config/config.go")
  -template string
        path to template file
  -yaml_description_key string
        key for description (default "usage")
  -yaml_path string
        path to config block in yaml file (default ".")

basic usage values_flat.yaml

const_generator values_flat.yaml

nested yaml struct values_nested.yaml

const_generator --yaml_path foo.bar values_nested.yaml