[15] Results

Golang : Use wildcard patterns with filepath.Glob() example

golang wildcard filepath-glob pattern

Searching for files by extension can be done easily in Golang with filepath.Ext() function. To search for files….... read more

Golang : File system scanning

golang filepath-walk scan size

Problem :

How to scan all the files located inside a root directory in Golang?

Solution :

Use the filepath.Walk.... read more

Golang : Find duplicate files with filepath.Walk

golang duplicate sha512 filepath-walk

Sometimes we downloaded a lot of files in a directory and although the files have different names, they could be….... read more

Golang : Find and replace data in all files recursively

golang search-recursively search-and-replace filepath

Alright, this tutorial is an enhancement of previous tutorial on how to search for file recursively with wildcard support. In….... read more

Golang : Determine if directory is empty with os.File.Readdir() function

golang empty-directory readdir filepath-walk

Problem :

You are traversing a directory tree with filepath.Walk() function and you need to find out if a directory….... read more

Golang : Convert decimal number(integer) to IPv4 address

golang ip-address decimal-base-10 bitwise-or

Problem :

You've read the previous tutorial on how to convert IPv4 address to decimal number and store….... read more

Golang : Find file size(disk usage) with filepath.Walk

golang filepath-walk file size disk-usage find

Need to determine which file is taking up all the disk space? Maybe this small Golang program can be useful….... read more