mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
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. 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. I didn't, yet. These wrap existing APIs. None.