How to get the dimensions of an image in Golang
Here are two simple methods to get the dimensions of an image in Golang: using image.DecodeConfig
method if the image is not already loaded and image.Decode
method is the image is loaded.
Java Custom Annotations Example
How to create Java Custom Annotation. A simple example of creating Annotations in Java and usage by calling the Reflection API.
How to Install GoLang 1.10 on Ubuntu
How to Install GoLang 1.10 on Ubuntu. This can be applied to any Golang version and for any Ubuntu version.
How to stop and remove all Docker containers
How to stop and remove all Docker containers using two commands. Useful for fresh restart or when you run out of disk space.
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.
Search
Other Posts
Follow Us On