/oss · 3 merged

duke-git/lancet

A large library of ready-made helper functions for Go.

the project on GitHub (opens in a new tab)
  1. 28 Nov 2026

    Newer Mastercard numbers pass the check

    What was broken
    The Mastercard check only knew the old 51 to 55 prefixes, so it rejected every card starting with 2221 to 2720, issued since 2017.
    What I changed
    The check now accepts the 2-series range too.
    Why it matters
    Checkouts built on it no longer refuse valid Mastercards.

    see the code, #442 (opens in a new tab)

  2. 26 Nov 2026

    Zipping a folder reports errors from subfolders

    What was broken
    Zipping a folder returned success but left files out when something in a subfolder could not be read, such as a linked folder or a locked file.
    What I changed
    Errors from subfolders are now returned instead of being dropped.
    Why it matters
    A zip that looks done really holds every file, or you are told why not.

    see the code, #437 (opens in a new tab)

  3. 16 Nov 2026

    Counting days across a clock change gives the right number

    What was broken
    Counting the days between two dates came out one day short when the range crossed the spring clock change, because that day only has 23 hours.
    What I changed
    It now compares calendar dates and times, so a short day still counts as a day.
    Why it matters
    Date math in apps using it is no longer off by one in March.

    see the code, #430 (opens in a new tab)

← every project