Accessing remote resources, on a local network or from a server across the internet, is likely to play a part in most applications. Unfortunately, it's also the source of a significant number of potential issues: slow responses, unexpected data, or no data at all. Let's look at some ways we can work to create a robust application even when we need to use the network and integrate cloud services.
Network resources and caching
Loading remote resources
Accessing resources in Go is normally through a byte stream, either locally (for embedded resources or file system access) or remotely (for HTTP requests and data from a remote server). As the method for reading local and remote data is similar, we can load remote resources...