[20] Results

Golang : How to get struct tag and use field name to retrieve data?

golangstruct-field struct-tag field-by-name

Problem :

A structure data field can have additional information or meta-data. This information is known as struct tag in….... read more

Golang : Check whether a network interface is up on your machine

golang network-interface probe-status interface-by-name


You have multiple network interfaces on your machine and you need to know the status of a particular network….... read more

Golang : Reverse by word

golang reverse by-word

This tutorial will show you how to reverse the order of words in a string. Reversing the words or elements….... read more

Golang : How to get struct field and value by name

golang struct-field

In Go, there are times when we need to find out the value of a field in a given structure….... read more

Golang : Meaning of omitempty in struct's field tag

golang omitempty struct field-tag

Another quick note for myself and maybe useful for you as well. This is about the meaning of the word….... read more

Golang : Extract XML attribute data with attr field tag example

golang xml attributes attr field-tag

This is an additional tutorial for previous tutorial on how to add XML attribute in Golang with struct….... read more

Golang : Covert map/slice/array to JSON or XML format

golang json xml http-response field-tags

Problem :

You have a data struct in map, slice or array format and you have to convert the data….... read more

Golang : Function as an argument type example

golang function-argument passing-values-by-parameters

When we need to invoke another function inside a.... let's say outer function, the typical way to do this is….... read more