Interfaces in Golang
Interfaces are collections of method signatures. A interface type can hold any value that implements those methods. The empty interface is an interface type that specifies zero methods. A type assertion provides access to an interface underlying concrete value. Two interfaces are equal if they have equal concrete values and identical dynamic types, or if both are nil.
How to show open database connections in MySQL
How to show open database connections in MySQL using show status
and show processlist
command.
How to check the JDK version of a class file
When running a Java application it is mandatory that the JRE version to match or to be higher that the JDK version used to compile the application.
You will get the "Unsupported major.minor version 52.0" error when trying to run an Java 1.8 application using a lower version of Java.
Robots.txt File in SEO
A robots.txt file tells search engine crawlers which pages or files the crawler can or can't request from your site.
This is used mainly to avoid overloading your site with requests; it is not a mechanism for keeping a web page out
of Google. To keep a web page out of Google, you should use noindex
directives, or to password-protect
your page.
How to read CSV file in Golang
How to read CSV file in Golang using reader from encoding/csv
package. For this example we took an simple example of a CSV file containing three columns name, address and phone.
How to write CSV file in Golang
How to write CSV file in Golang using writer from encoding/csv
package. For this example we took an simple example of a CSV file containing three columns name, address and phone.