Go Cloud aims to cement Golang in the cloud

Go Cloud aims to cement Golang in the cloud

Google wants to make its Go language (Golang) a staple of cloud application development with its open source Go Cloud project, featuring a library and tools to build apps that can be ported across different clouds. Available in a very early beta version, Go Cloud is not yet suitable for production use.

Go offers cloud development benefits, including low latency and built-in concurrency. Go Cloud, meanwhile, provides APIs to write simpler, more-portable applications.

A set of generic APIs now cover:

  • Unstructured binary (blob) storage.
  • Variables that change at runtime.
  • Connections to MySQL databases.
  • Server startup and diagnostics, including request logging, tracing, and health-checking.

Go Cloud serves as a foundation for an ecosystem of portable cloud libraries to be built on these APIs. Currently, the Go Cloud GitHub repository has implementations for Google Cloud Platform and Amazon Web Services. Support for more cloud providers is planned soon.

Critical to the project is Wire, a code generator that creates human-readable code that imports cloud SDKs for the providers the developers use. This lets Go Cloud support cloud providers without increasing compile times or binary sizes while avoiding effects from init() functions.

Wire automates the connecting of components using dependency injection. Component dependencies are represented as function parameters to encourage explicit initialization rather than global variables. Wire operates without a runtime state or reflection, thus enabling code for handwritten initialization.

Where to download Go Cloud

You can download Go Cloud from GitHub. Install it and Wire as follows:

go get github.com/google/go-cloud
go get github.com/google/go-cloud/wire/cmd/wire
IDG Insider

PREVIOUS ARTICLE

« How Buzzfeed democratised content analytics using BigQuery and Looker

NEXT ARTICLE

3 Asian-Pacific companies share their business transformation stories »
author_image
IDG News Service

The IDG News Service is the world's leading daily source of global IT news, commentary and editorial resources. The News Service distributes content to IDG's more than 300 IT publications in more than 60 countries.

  • Mail

Recommended for You

International Women's Day: We've come a long way, but there's still an awfully long way to go

Charlotte Trueman takes a diverse look at today’s tech landscape.

Trump's trade war and the FANG bubble: Good news for Latin America?

Lewis Page gets down to business across global tech

20 Red-Hot, Pre-IPO companies to watch in 2019 B2B tech - Part 1

Martin Veitch's inside track on today’s tech trends

Poll

Do you think your smartphone is making you a workaholic?