mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? This PR adds _consistent_ shorthand tag constructors for all supported zap tags. I also added `Uint64` (and `NewUint64`) as we've wanted it in other projects. ## Why? There are two main reasons: - I (and others I've talked to) are lazy and dislike typing `log.New<Type><TAB>` when `log.<Type>` would have done it - Consistency! Some tags are just the type name (`Bool`, `Error`), some have a prefix of New (`NewInt64`), and some have a prefix _and_ a suffix of Tag (`NewStringTag`). The new constructors are entirely consistent: no prefixes and no suffixes; just the type's name. ## How did you test it? I didn't, yet. These wrap existing APIs. ## Potential risks None.