All keywords in Java
Keywords are special words in the programing language which have reserved use in the language. Keywords may not be used as identifiers in Java; for example you cannot declare a field whose name is a keyword.
How to trim whitespace from string in Golang
How to trim (remove) leading and trailing whitespace from string in Golang using the TrimSpace
, Trim
, TrimLeft
, TrimRight
methods from strings
package.
How to split a string into slice in Golang
How to split a string into slice using Golang. For a simple split by a singular character you can use Split()
method from strings
package. For more complex rules the regexp.Split()
method can be used.
How to change the hostname in Ubuntu
How to change hostname in Ubuntu. There are three options: temporary until the first restart and permanent by changing the hostname file or using command hostnamectl
Maven local repository location
Maven local repository default location for Linux and Windows and how to change the location.
How to setup a proxy with authentication for HTTP client in Golang
How to setup a proxy with authentication for HTTP client in Golang example using http.Transport and http.Client. Simple example calling httpbin.org test server.