Skip to content

Instantly share code, notes, and snippets.

View jdheyburn's full-sized avatar
👋
Heya!

Joseph Heyburn jdheyburn

👋
Heya!
View GitHub Profile
2019/08/02 13:02:54 [INFO] Terraform version: 0.12.6
2019/08/02 13:02:54 [INFO] Go runtime version: go1.12.4
2019/08/02 13:02:54 [INFO] CLI args: []string{"/usr/local/Cellar/tfenv/0.6.0/versions/0.12.6/terraform", "apply"}
2019/08/02 13:02:54 [DEBUG] Attempting to open CLI config file: /Users/jheyburn/.terraformrc
2019/08/02 13:02:54 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/08/02 13:02:54 [INFO] CLI command args: []string{"apply"}
2019/08/02 13:02:54 [DEBUG] New state was assigned lineage "0299013c-e58d-2e11-3418-96bded058df5"
2019/08/02 13:02:54 [DEBUG] checking for provider in "."
2019/08/02 13:02:54 [DEBUG] checking for provider in "/usr/local/Cellar/tfenv/0.6.0/versions/0.12.6"
2019/08/02 13:02:54 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64"
@jdheyburn
jdheyburn / function.tmpl
Created April 29, 2019 13:52
Custom template for gotests to generate tests that perform stricter error testing
{{define "function"}}
{{- $f := .}}
func {{.TestName}}(t *testing.T) {
{{- with .Receiver}}
{{- if .IsStruct}}
{{- if .Fields}}
type fields struct {
{{- range .Fields}}
{{Field .}} {{.Type}}