Skip to content

Tags: alecthomas/repr

Tags

v0.5.2

Toggle v0.5.2's commit message
fix: panic when checking IsZero()

v0.5.1

Toggle v0.5.1's commit message
Revert "fix: possible fix for occasional infinite recursion"

This reverts commit a86cbc1.

This caused some values to be ellipsed that shouldn't have been, eg. in
Chroma tests:

```
             {
               Pattern: "\\$\\{",
        -      Type: chroma.TokenType(LiteralStringInterpol),
        +      Type: ...,
               Mutator: &chroma.pushMutator{
                 States: []string{
                   "curly",
        @@ -36,7 +36,7 @@
               Pattern: "^(\\w+)(=)",
               Type: &chroma.byGroupsEmitter{
                 Emitters: []chroma.Emitter{
        -          chroma.TokenType(NameAttribute),
        +          ...,
                   chroma.TokenType(Operator),
                 },
               },

```

v0.5.0

Toggle v0.5.0's commit message
fix: possible fix for occasional infinite recursion

Under some circumstances I've seen infinite recursion where I wouldn't
expect it, but removing this solves it. Not sure why, I haven't been
able to narrow it down to a small reproducible case.

v0.4.0

Toggle v0.4.0's commit message
feat: OmitEmpty() omits zero-length slices and maps

v0.3.0

Toggle v0.3.0's commit message
feat: Hide[T]() completely omits fields of the given type

v0.2.0

Toggle v0.2.0's commit message
fix: show type when value is within "any"

eg.

    []any{int64(1)}

Without this, numeric types would have the same representation even if
the types differed.

Also use `any` rather than `interface {}`.

v0.1.1

Toggle v0.1.1's commit message
fix: use stdlib IsZero()

v0.1.0

Toggle v0.1.0's commit message
fix: panic on Interface()

Replaces #13