I don’t think it is possible in any language - I think it is a very of the halting problem https://en.wikipedia.org/wiki/Halting_problem <https://en.wikipedia.org/wiki/Halting_problem> unless you are referring to checking a constant ?
> On Oct 27, 2018, at 5:07 PM, hay <habibalyou...@gmail.com> wrote: > > Hi, > > I've a project and it needs static asserts at compile time to check if string > values are not left empty by the programmer. Is this possible in golang? > > Thanks in advance > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com > <mailto:golang-nuts+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.