How to trim whitespace from string in Golang

  • 25 September 2019
  • ADM

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

  • 22 March 2020
  • ADM

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

  • 05 March 2018
  • ADM

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

  • 03 August 2017
  • ADM

JAXB Hello World Marshalling/Unmarshalling example: Object to XML and XML to Object.


How to create a Java project with Maven

  • 07 August 2017
  • ADM

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

  • 11 July 2016
  • ADM

How to create XML file in Java using DOM. Simple example with pretty printing to output the content to console or to a file.