Properties

Last built 1 month ago using go version go1.7.5 linux/amd64 and 68 seconds of time

Downloads
Filename
File Size
 
korvike_master_darwin-386.zip
1.2MiB
korvike_master_darwin-amd64.zip
1.3MiB
korvike_master_linux-386.zip
1.2MiB
korvike_master_linux-amd64.zip
1.3MiB
korvike_master_linux-arm.zip
1.2MiB
korvike_master_windows-386.zip
1.2MiB
korvike_master_windows-amd64.zip
1.3MiB
Project-Readme for this version

license Go Report Card Download on GoBuilder.me

Luzifer / korvike

korvike is the finnish translation to the word “replacer” and that is what it does: It takes a Go template and executes it.

Available functions

  • Take key-value pairs from the CLI and replace them inside the template:
    echo "{{ .foo }}" | korvike -v foo=bar => "bar"
  • Read environment variables and replace them inside the template:
    export FOO=bar; echo '{{env "FOO"}}' | korvike => "bar"
  • Read a file and place it inside the template:
    echo "Hello World" > hello; echo '{{file "hello"}}' | korvike => "Hello World"