Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConverted = func(file *hcl.File) (model.Document, int, error) { c := converter{bytes: file.Bytes} body, err := c.convertBody(file.Body.(*hclsyntax.Body)) if err != nil { sentry.CaptureException(err) if er, ok := err.(*hcl.Diagnostic); ok && er.Subject != nil { return nil, er.Subject.Start.Line, err } return nil, 0, err } return body, 0, nil }
DefaultConverted an hcl File to a toJson serializable object This assumes that the body is a hclsyntax.Body
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.