Hi Dave,

I need to create a common utility which checks whether the struct is empty
or not else i can throw error.
for example:

type Employee struct{
        EmpId string
        EmpName string
        Department []String
        Projects map[string]string
}

i need to check whether the object coming from rest api i hosted has empty
value or it is filled with something. and i want to make the utility not
limited to Employee but to use the same for other structs as well.

how can i do it?

Regards,
Parveen Kumar

On Tue, Nov 22, 2016 at 3:39 PM, Dave Cheney <d...@cheney.net> wrote:

> Please do not reopen to a four year old thread. Instead please start a new
> thread describing the problem you have, what you tried, and what happened
> when you tried.
>
> Thanks
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/golang-nuts/neGz_Rxtxxw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit 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.

Reply via email to