Documentation ¶
Index ¶
- Variables
- func ChunkString(s string, chunkSize int) []string
- func ExportGraphToFile(outputPath string, outputFormat string, graph *gographviz.Escape) error
- func Find(slice []string, val string) (int, bool)
- func InitiateGraph() (*gographviz.Escape, error)
- func ParseTFfile(configpath string) (*tfconfigs.Module, error)
- func PrintDiags(diags hcl2.Diagnostics)
- func PrintError(err error)
- func RemoveDuplicateValues(strSlice []string) []string
Constants ¶
This section is empty.
Variables ¶
var Ignorewarnings bool
Ignorewarnings is used to ignore warnings if set to true. Default is false (warnings will be displayed)
var Verbose bool
Verbose enables verbose mode if set to true
Functions ¶
func ChunkString ¶
ChunkString splits a string into chunks of X characters https://stackoverflow.com/a/48479355
func ExportGraphToFile ¶
func ExportGraphToFile(outputPath string, outputFormat string, graph *gographviz.Escape) error
ExportGraphToFile exports Graph to file
func Find ¶
Find takes a slice and looks for an element in it. If found it will return it's key, otherwise it will return -1 and a bool of false. https://golangcode.com/check-if-element-exists-in-slice/
func InitiateGraph ¶
func InitiateGraph() (*gographviz.Escape, error)
InitiateGraph initializes the graph
func ParseTFfile ¶
ParseTFfile loads a file path and returns a TF module
func RemoveDuplicateValues ¶
RemoveDuplicateValues removes duplicate strings in []string slices Ref: https://www.geeksforgeeks.org/how-to-remove-duplicate-values-from-slice-in-golang/
Types ¶
This section is empty.