Go Type Tagging

from blog The Smidt Blog, | ↗ original
Intro Mixing up the values passed to functions and structs are a common mistake in many programming languages. This happens even more often with languages that have dynamic type system. Here is a trivial example which illustrates this problem: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 type User struct { UserName string Email string ...