tfvars

package module
v0.0.0-...-e2d0ad4 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: CC0-1.0 Imports: 4 Imported by: 0

README

Project

Repository contents

Public domain

This project is in the worldwide public domain. As stated in CONTRIBUTING:

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

Documentation

Overview

tfvars provides the ability to read unstructured data from a tfvars file

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tfvars

type Tfvars struct {
	// contains filtered or unexported fields
}

Tfvars holds the data from a tfvars file

func New

func New(path string) (*Tfvars, error)

New creates a new Tfvars object

func (*Tfvars) Get

func (t *Tfvars) Get(arg ...string) string

Get returns the string value of the object at the given path

func (*Tfvars) Keys

func (t *Tfvars) Keys(arg ...string) []string

Keys returns the keys available at the given path

func (*Tfvars) Raw

func (t *Tfvars) Raw(arg ...string) interface{}

Raw returns the raw interface{} value at the given path

Jump to

Keyboard shortcuts

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