&gt; Here&#x27;s one way you could do the clipping generically in Go[1]. This has a Clip function that uses a type assertion.<p>Well, sure. But the title of the article is &quot;Avoiding Reflection in Go&quot;. :)