utils

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CacheHits int = 0
View Source
var Debug bool = false

TODO Use viper.GetBool here

Functions

func Copy

func Copy(src, dst string, isGit bool) error

This function should be used to accelerate git clone to the separate directory. Actually it is better just copy .tf files and then compare trees isGit option omits .git directory and non-*.tf files

func GetChangeLogString

func GetChangeLogString(orig, modif hcl.Range) (string, error)

func GetStringAtPos

func GetStringAtPos(start, end int, filename string) (string, error)

func GetStringFromHclSyntaxExpression

func GetStringFromHclSyntaxExpression(e hclsyntax.Expression) string

func GetStringFromRange

func GetStringFromRange(r hcl.Range) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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