• Overview
    Key features
    • Observability
    • Auto-scaling
    • Multiframework
    • Security
    Frameworks
    • Django
    • Next.js
    • Drupal
    • WordPress
    • Symfony
    • Magento
    • See all frameworks
    Languages
    • PHP
    • Python
    • Node.js
    • Ruby
    • Java
    • Go
  • Industries
    • Consumer Goods
    • Media/Entertainment
    • Higher Education
    • Government
    • Ecommerce
  • 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
  • Login
  • Request a demo
  • Free Trial
Meet Upsun. The new, self-service, fully managed PaaS, powered by Platform.sh.Try it now
Blog
Cover image

Go 1.18 released on Platform.sh

gogolang
16 March, 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

The Platform.sh CLI is ready to Go(lang)

The Platform.sh CLI is ready to Go(lang)

Company
AboutSecurity and complianceTrust CenterCareersPressContact us
Thank you for subscribing!
  •  
Field required
Leader Winter 2023
System StatusPrivacyTerms of ServiceImpressumWCAG ComplianceAcceptable Use PolicyManage your cookie preferencesReport a security issue
© 2024 Platform.sh. All rights reserved.
Supported by Horizon 2020's SME Instrument - European Commission 🇪🇺