I don't think this template function should be in any way authoritative, so let's namespace it.
9 lines
176 B
Plaintext
9 lines
176 B
Plaintext
import "datetime"
|
|
import "golang"
|
|
|
|
$d = datetime.now()
|
|
consul:kv "love" {
|
|
key => "mgmt/time",
|
|
value => golang.template("hello! it is now: {{ datetime_print . }}\n", $d),
|
|
}
|