[15] 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 : File path independent of Operating System

golang filepath

There are times a program need to determine the operating system it is running on and construct a proper file path for file I/O. Go….... read more


Golang : Search folders for file recursively with wildcard support

golang search-recursively wildcard filepath

Ok, here is an example on how to search for a file starting from a target directory and recursively search….... read more


Get file path of temporary file in Go

golang temp-file filepath

There are time when we need to know the exact file path of a temporary file. This is a a short tutorial on how to….... read more


Golang : Match strings by wildcard patterns with filepath.Match() function

golang wildcard filepath-match pattern

Problem:

You want to match strings using the same wildcard patterns commonly used in Linux/Unix shells such as *.go or….... read more


Golang : Find files by name - cross platform example

golang filepath-walk glob find-filecross-platform

Problem:

You want to find or locate files by name or by wildcard in your Golang program to do stuff….... read more


Golang : Convert IPv4 address to decimal number(base 10) or integer

golang ip-address decimal-base-10 integer

Problem :

IP address in decimal is easier to search, filter or compare. For example, searching for IP address in….... read more


Golang : Of hash table and hash map

golang hash-table lookups map knowledge-base

A short note for myself. Was looking to build a knowledge base consisting of a keyword or key string and….... read more


Advertisement