[91] Results

Golang : Get sub string example

golang get-sub-string

Getting sub string is a common task in extracting details from a larger set of information. Here is a quick….... read more

Swift : substringWithRange() function example

swift sub-string substringWithRange

A quick tutorial as add on from previous tutorial on how to get sub-string with rangeOfString() function. Another….... read more

Swift : Get substring with rangeOfString() function example

swift sub-string range-of-string

Problem :

You have a string and you want to get(extract) the sub string from start to {0} and from….... read more

Golang : Listen and Serve on sub domain example

golang sub-domain servemux api

At this moment, Golang's ListenAndServer() is able to handle URL with such pattern


However, if….... read more

Golang : Handle sub domain with Gin

golang sub-domain gin api

Just a supplementary tutorial for the previous tutorial on how to deal with sub domain in Golang. In….... read more

Golang : Check if a string contains multiple sub-strings in []string?

golang strings contains filter sub-strings

Problem :

You have a string and you use strings.Contains() function to determine if there is a sub-string inside the….... read more

Golang : Extract sub-strings

golang extract sub-strings splitN character-position

To extract sub-strings from a string in Golang, it can be done by determining a common delimiter and tokenize each….... read more

Golang : How to check for empty array string or string?

golang string check-empty-string string-array

Sometimes that most obvious thing can be the hardest to remember. Putting this down as a note for myself and….... read more