Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tinylib/msgp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.2.5
Choose a base ref
...
head repository: tinylib/msgp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.3.0
Choose a head ref
  • 6 commits
  • 19 files changed
  • 3 contributors

Commits on Jan 22, 2025

  1. Fix zeroing interface (#384)

    Use correct `x = nil` instead of `x = any` to zero interfaces.
    
    Fixes #383
    klauspost authored Jan 22, 2025
    Configuration menu
    Copy the full SHA
    3867c34 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2025

  1. Configuration menu
    Copy the full SHA
    de7ca58 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2025

  1. Configuration menu
    Copy the full SHA
    2c27623 View commit details
    Browse the repository at this point in the history
  2. Add zero-copy Unmarshal (#389)

    Adds `zerocopy` tag that will allow byte slices to be unmarshaled with zero-copy, referencing the original slice.
    
    AFAICT not possible for other types or when decoding.
    klauspost authored Mar 10, 2025
    Configuration menu
    Copy the full SHA
    4dfdcb5 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2025

  1. Add directive to decode/unmarshal to UTC (#392)

    Adds `//msgp:timezone utc` that will decode and unmarshal to UTC time.
    
    Avoids nasty hacks, like setting `time.Local` or having to do reflection to go through structs.
    
    Went for a new function, since it was a much cleaner solution than trying to convert after reading.
    klauspost authored May 13, 2025
    Configuration menu
    Copy the full SHA
    f48b2ec View commit details
    Browse the repository at this point in the history
  2. Add setof helper package (#391)

    Package setof allows serializing sets map[T]struct{} as arrays.
    
    Nil maps are preserved as a nil value on stream.
    
    A deterministic (sorted) version is available, with slightly lower performance.
    klauspost authored May 13, 2025
    Configuration menu
    Copy the full SHA
    12160bd View commit details
    Browse the repository at this point in the history
Loading