[17] Results

Golang : How to check for empty array string or string?

golang string check-empty-string string-array

Sometimes that most obvious thing can be the hardest to remember. Putting this down as a note for myself and….... read more

Delete a directory in Go

golang delete-directory

A simple tutorial on how to delete a directory in Go. This tutorial is a respond to this solution which is not the recommended way.….... read more

Golang *File points to a file or directory ?

golang file directory

In this tutorial, we will learn how to find out if the *File pointer is pointing to a file or directory. The codes are self….... read more

Create directory in Go

golang make-directory

In this short tutorial, we will learn how to create directory in platform independent manner. I.e we don't worry about the \ and / part….... read more

CodeIgniter/PHP : Create directory if does not exist example

codeigniter php is-dir mkdir create-directory

Problem :

How to check if a directory exist or not? If not, how to create a directory?


.... read more

Golang : How to get a user home directory path?

golang home-directory os-user lookup-username

Problem :

You need to get a user's home directory path in a Unix/Linux machine for storing or processing customized….... read more

CodeIgniter/PHP : Remove empty lines above RSS or ATOM xml tag

php codeigniter xml-tag empty-lines rss atom


Your friend is complaining that your website RSS feed is busted and validating with https://validator.w3.org gives this….... read more

Golang : How to check if slice or array is empty?

golang sql check-empty-slice-array err-no-rows sql

Problem :

One of your code is throwing out panic error and apparently it is trying to do a for….... read more