[25] Results

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

www.example.com/api

However, if….... 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


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


Golang : How to join strings?

golang join combine strings

Apart from using fmt.Sprint() function to combine strings together. There is another way to concatenate string from different strings. One….... read more


Golang : How to check if a string contains another sub-string?

golang strings contains

Problem :

How to check if a string contains another sub-string in Golang?

Solution :

Use the strings.Contains() function.

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


Advertisement