Go 1.26 implements an equivalent operation in the standard library: https://go.dev/doc/go1.26#language Given the goal is to supplement the standard library, going forward this will be redundant.