8000 Tags · alecthomas/hcl · GitHub
[go: up one dir, main page]

Skip to content

Tags

Tags

v2.6.0

Toggle v2.6.0's commit message
feat: add HydratedImplicitBlocks marshalling option

This ensures that blocks that aren't declared by users, but are present
in the schema, are hydrated with defaults.

v2.5.0

Toggle v2.5.0's commit message
feat: add support for `hcl:",embed"`

v2.4.0

Toggle v2.4.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: add WithVariableExpansion to expand in default struct tags (#46)

* feat: add WithVariableExpansion to expand  in default struct tags

* refactor: Change the implementation to generic WithDefaultTransformer

v2.3.1

Toggle v2.3.1's commit message
fix: duration/time unmarshalling support

v2.3.0

Toggle v2.3.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: Add `WithDetachedComments`, a functional option for `Parse`, `P…

…arseString`, and `ParseBytes` (#37)

Allows parsing detached comments as nodes in the AST.

Allows distinguishing the following scenarios:

```hcl
// We see this as a LEADING comment
// that — because no empty lines separates it from the subsequent block —
// we see as semantically attached to the block.
// alecthomas/hcl parses it into the block's `Comments`.
// There is no change of behavior.
block {}
```

```hcl
// We see this as a DETACHED comment
// that — because empty lines separate it from the subsequent block —
// we see as semantically divorced from the block
// alecthomas/hcl parses it into a Comment node.
// The new behavior is opt-in.

block {}
```

```hcl
block {}
// We see this as a DETACHED comment
// that — because it trails the preceding block —
// we see as semantically divorced from the block
// alecthomas/hcl parses it into a Comment node _as well as_ TrailingComments.
// The new behavior is opt-in.
```

v2.2.0

Toggle v2.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: Render empty blocks without a line break between `{` `}` (#34)

v2.1.0

Toggle v2.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: Marshal and Unmarshal numeric map keys (#31)

v0.5.5

Toggle v0.5.5's commit message
chore: upgrade alecthomas/repr, go and golangci-lint

v2.0.0

Toggle v2.0.0's commit message
Only quote labels if they need to be.

v2.0.0-alpha.6

Toggle v2.0.0-alpha.6's commit message
fix: support for TextUnmarshaler in schema reflection

It was mistakenly checking for TextMarshaler instead.
0