• Overview
    Frameworks
    • Drupal
    • WordPress
    • Symfony
    • Magento
    • See all frameworks
    Features
    • Observability
    • Auto-scaling
    Solutions
    • Marketing Teams
    • Retail
    • Higher Education
  • Pricing
  • Featured articles
    • Switching to Platform.sh can help IT/DevOps organizations drive 219% ROI
    • Organizations, the ultimate way to manage your users and projects
  • Support
  • Docs
  • Contact
  • Login
  • Free Trial
Blog
Cover image

Go 1.18 released on Platform.sh

gogolang
March 16, 2022
Aaron Collier
Aaron Collier
Senior Technical Writer

As of yesterday, the team behind Go has released a new version 1.18 with some significant changes to the language. Those of you who want to start using these new features are in luck: you can do it right away on Platform.sh.

If you’re already using Go on Platform.sh, you can upgrade by changing the number in the type key of your app configuration. In your .platform.app.yaml file:

type: ‘golang:1.18’

If you’re not yet using Go for your project, now’s a great time to give Go a try.

What’s new

The major change in this release is the possibility to use generic features. This means your functions and types can now take type parameters.

This change has been in the works for many years. The first proposal for generics came within a day of the first Go release.

The new changes mean you can now write a function that can apply to parameters with different types. Previously, if you wanted to, say, add a map of integer values and a map of float values, you’d have to write two separate functions for that, one for each type.

Now, you can write a single generic function that can handle each type. For the details, see a tutorial on generics in Go.

For the details of all the changes in this release, see the Go 1.18 release notes.

Get the latest Platform.sh news and resources
Subscribe

Related Content

New: Go release 1.13 on Platform.sh

New: Go release 1.13 on Platform.sh

4
8
8
5
6
Deployments this week (including Fridays!)

Company

AboutSecurity and complianceTrust CenterBoard and investorsCareersPressContact us
4
8
8
5
6
Deployments this week (including Fridays!)
System StatusPrivacyTerms of ServiceImpressumWCAG ComplianceManage your cookie preferencesReport a security issue
© 2022 Platform.sh. All rights reserved.
Supported by Horizon 2020's SME Instrument - European Commission 🇪🇺