shim

package
v0.0.0-...-0c0d4ac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package shim implements functions for rendering the Terraform shim.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(content []byte, file string) ([]byte, error)

Render templates the given file name over the Terraform shim.

Example
package main

import (
	"fmt"

	"github.com/joshdk/tfbundle/shim"
)

func main() {
	body, err := shim.Render(nil, "hello.txt")
	if err != nil {
		fmt.Println(err.Error())
		return
	}

	fmt.Print(body)
}
Output:

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL