OP ask for a similar pattern for .net, you come here with unnecessary aggressive stance on something that was released 8 month ago, looking at your history it does not surprises though since you seems to have a grudge with Go.
You are misreading this as aggression towards OP, which there is none. Instead, this is a general despair at the damage done to our industry by Go and its community that keeps touting this mediocre language with weak compiler, unsound ecosystem, many footguns, lackluster type system and backwards design as something that can even remotely hope to compete with Rust or current state of C#.