[56] Results

Gogland : Single File versus Go Application Run Configurations

golang gogland single-file go-application package-structure

This is a follow up from the previous guide on how to place the source code files in….... 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


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


Golang : Download file example

golang download file

Continuing from previous tutorial on how to use http.Get() function, in this tutorial, we will learn how to….... read more


Golang : Check if a file exist or not

golangfile I/O

In this tutorial, we will see how to check if a file exist or not before performing further operation. checkfileexist.go package main import ( "fmt"….... read more


Golang : Write file with io.WriteString

golang write-file

Writing to a file in Golang is easy. There are couple of ways to do it. In this tutorial, we will show you how to….... read more


Advertisement