[12] Results

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 : How to get a user home directory path?

golang home-directory os-user lookup-username

Problem :

You need to get a user's home directory path in a Unix/Linux machine for storing or processing customized….... read more

Golang : Extract unicode string from another unicode string example

golang string extract-unicode-characters


You have a string with unicode (UTF-8) characters and you want to extract part of the string by using….... 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 : 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

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

Get colors in HEX or RGB in CSS,Sass or Less with Pictones

pictones web-app extract-color hexrgb css

There are times when I came across a color scheme of an image that I'm interested in….... read more

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

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


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