[25] Results

Golang : Get remaining text such as id or filename after last segment in URL path

golang filepath-base basename extract-remaining-text-after-slash

Problem:

Retrieving the last segment/part or the remaining text after a slash in the URL or filename in a path….... read more


Golang : Search and extract certain XML data example

golang xml newdecoder extract-attribute chardata

There are times when you want to just search for certain element in huge XML data set and extract the….... read more


Golang : Extract unicode string from another unicode string example

golang string extract-unicode-characters

Problem:

You have a string with unicode (UTF-8) characters and you want to extract part of the string by using….... read more


Golang : How to extract links from web page ?

golang extract-links crawl-web-site parser

Golang's third party package goquery provides excellent tools to assist developers in building HTML parser/crawler. In this tutorial,….... read more


Grep : How to grep for strings inside binary data

grep binary text string

Grep or Global Regular Expression Print is a very useful Unix/Linux command that I've practically used everyday. So, recently a….... read more


Golang : Interpolating or substituting variables in string examples

golang interpolate substitute text-template variables string

For this quick tutorial, we will explore how to interpolate(substitute) actual data into variables inside a string. Will keep these….... read more


Golang : How to get username from email address

golang stringsextract-username email-address

Just need a simple solution to extract the username from a given email address. The code below uses strings.Split() function….... read more


Golang : Extract part of string with regular expression

golang regular-expression regexp extract-string

Below is a simple example of how to extract a specific part of a string with the help of regular….... read more


Advertisement