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 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.
How to setup a proxy for HTTP client in Golang
How to setup a proxy for HTTP client in Golang example using http.Transport and http.Client. Simple example calling httpbin.org test server.
JAXB Hello World Marshalling / Unmarshalling Example
JAXB Hello World Marshalling/Unmarshalling example: Object to XML and XML to Object.
How to create a Java project with Maven
How to create a Java project with Maven. Simple steps to generate the project, import in Eclipse and run the application.
How to create XML file in Java using DOM
How to create XML file in Java using DOM. Simple example with pretty printing to output the content to console or to a file.