[60] Results

Golang : Get checkbox or extract multipart form data value example

multi-part-form-data golang form-value parse-multipart-form

This tutorial is a slight modification on the previous tutorial on the how to upload multiple files and….... read more

Golang : reCAPTCHA example

golang recaptcha signup-form

For this tutorial we will explore how to implement reCAPTCHA with Golang. If you are running website with lots of….... read more

Golang : Change date format to yyyy-mm-dd

golang date-format long-form-date short-form-date

Problem :

Your Golang program is producing date in long form that look like this :

2015-08-11 17:21:52.776537624 +0800 MYT

.... read more

Golang : get the current working directory of a running program

golang executable file-path

Problem :

You are looking for way to get the folder/directory of the running program.

Solution :

Use https://bitbucket.org/kardianos/osext.... read more

Golang : Check to see if *File is a file or directory

golang file directory

Sometimes, we need to write codes that is robust and flexible enough to handle different situation. For example, if a….... read more

Golang : Simple File Server

golang file-server

Got a request from a developer friend yesterday on how to open up part of his machine and turn into a file server. The code….... read more

CodeIgniter : form input set_value cause " to become & quot

codeigniter quot html-escape set-value form-helper

Problem :

A string retrieved from database contains " and when you try to display the string with Form Helper's….... read more

Golang : Get file last modified date and time

golang file

In this tutorial, we will learn how to get a file last modified date and time with Go. Getting the last modified date and time….... read more