Base64 Encode in Golang
Golang programing language provides built-in suport for base64 encoding. The base64 functions are available into the
encoding/base64
package. It provides implementations for both Standard, with or without padding and Filename safe Base64 encoding variant.
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 generate UUID / GUID in Java
How to generate UUID / GUID in Java using java.util.UUID
class, UUID.randomUUID()
method.
How to get network interfaces in Java
How to get network interfaces in Java using NetworkInterface class.
How to generate JAXB classes with xjc
How to generate JAXB classes with xjc. Command line: xjc -d src -p com.admfactory.client schema.xsd
How to get local computer name and IP in Java
How to get local computer name and IP in Java. Simple snippet using InetAddress.getLocalHost() method.