[31] Results

Golang : alternative to os.Exit() function

golang os-exit syscall-exit

Just a quick note on the alternative to os.Exit() function, which is the syscall.Exit() function. Both functions behave the same….... read more

Golang : Exit, terminating or aborting a program

golang exit abort error

There are times where a controlled termination of a program is required rather than proceeding ahead. This is a quick….... read more

Javascript : Prompt confirmation before exit

javascript confirm-exit

There are times when I typed some words into Facebook comment fields and then somehow got distracted to do something else only to come back….... read more

Golang : Read directory content with os.Open

golang os

There are few ways to traverse a directory tree and content in Go. One of them is os.File.Readdir function. In this tutorial, we will see….... read more

Golang : Read directory content with filepath.Walk()

golang os

Golang's filepath.Walk function allow a program to traverse a directory content and tree with ease. In this tutorial, we will see how to read a….... read more

Golang : Create and resolve(read) symbolic links

golang os-symlink symbolic os-readlink

Creating new symbolic link for a file and resolving(read) symbolic link back to the origin file is pretty straight forward….... read more

Javascript : Get operating system and browser information

javascript browser-version get-visitor-os whichbrowser

Problem :

You need to find out your visitor's browser and os version. How to do that with Javascript or….... read more

Golang : Intercept Ctrl-C interrupt or kill signal and determine the signal type

golang os-signal interrupt ctrl-c os-kill

Problem :

Your server needs to perform some clean up operation or flush everything in memory to disk before shutting….... read more