Is it possible to trigger compile time error with custom library in golang?
Let's say, I have min() (just for example) a variadic function to define the smallest value from multiple values provided. If the caller don't provided any parameter, I want to halt compile process (as this would be the bug in the caller, not error in my function). How to do that? Calling a function which has variadic parameter and passing no arguments is valid by the language spec. So you can't make it a compile-time error. However, you may modify the signature of your function to have a non-variadic and a variadic parameter, and then calling it with no arguments would indeed be a compile