[74] Results

Golang: Prevent over writing file with md5 hash

golang increment-string upload-duplicate-file md5 overwrite

This is an additional note for previous tutorial on how to upload/submit file from command line to a….... read more

Golang : Perform sanity checks on filename example

golang file-upload sanitize filename replace


Your Golang application accepts files uploaded by visitors. However, you want to sanitize the uploaded filenames for security purpose.….... read more

Golang : Upload big file (larger than 100MB) to AWS S3 with multipart upload

golang upload-big-file AWS s3 objects

At my previous tutorial on uploading file to Amazon Web Services S3, a reader asked if the method….... read more

Golang : Delete duplicate items from a slice/array

golang duplicate slice array

Problem :

Fairly common question or task that a programmer will face from time to time. How to remove duplicate….... read more

Golang : Generate random elements without repetition or duplicate

golang random element map repetition duplicate

Problem :

How to generate a map with random elements without repetition or duplicate items in the map?

Solution :

.... read more

Upload multiple files with Go

upload-multiple golang

Uploading multiple files to Go server can be done easily as well. All you need to do is to parse the multiform data and loop….... read more

Golang : How to count duplicate items in slice/array?

golang count-duplicate slice array

Problem :

You need to count the number of duplicate items in a slice or array.

Solution :

Pseudo-code :….... 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