Hi Ingo,
>
> v.FieldByNameFunc(func(fieldName string) bool {
> field, _ := v.FieldByName(fieldName)
> name := field.Tag,Get("name")
> if len(name) == 0 {
> name = fieldName
> }
> // 
> return false
> })


Sorry for my bab explain.
So tag name is more priority for me then I need to check if a field have 
tag name or not.
If not I can simple use the fieldName passed to the match function. 

On Thursday, March 16, 2017 at 3:30:14 PM UTC+7, Ingo Oeser wrote:
>
> What checks are you doing on struct field names and tags? That will be 
> crucial to answering your question.

-- 
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