go - 自创建以来,Go 发生了很大变化吗?

标签 go

我最近也在学习 Ember.js。这并不是真正的同类比较,因为 Ember.js 是一个框架,而 Go 是一种语言。 Ember.js 相对较新,我发现今年最近编写的一些教程已经过时了。

例如,这个博客是 2010 年的,https://blog.golang.org/gos-declaration-syntax , 关于 Go 的声明语法是否仍然有效?

最佳答案

Go 在首次公开发布时并没有太大变化。博客不错。

Go 有兼容性保证。

Go 1 and the Future of Go Programs

Introduction
Expectations
Sub-repositories
Operating systems
Tools

Introduction

The release of Go version 1 (March 2012), Go 1 for short, is a major milestone in the development of the language. Go 1 is a stable platform for the growth of programs and projects written in Go.

Go 1 defines two things: first, the specification of the language; and second, the specification of a set of core APIs, the "standard packages" of the Go library. The Go 1 release includes their implementation in the form of two compiler suites (gc and gccgo), and the core libraries themselves.

It is intended that programs written to the Go 1 specification will continue to compile and run correctly, unchanged, over the lifetime of that specification. At some indefinite point, a Go 2 specification may arise, but until that time, Go programs that work today should continue to work even as future "point" releases of Go 1 arise (Go 1.1, Go 1.2, etc.).

Compatibility is at the source level. Binary compatibility for compiled packages is not guaranteed between releases. After a point release, Go source will need to be recompiled to link against the new release.

The APIs may grow, acquiring new packages and features, but not in a way that breaks existing Go 1 code.

关于go - 自创建以来,Go 发生了很大变化吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33183028/

相关文章:

go - image.Image 接口(interface)中 ColorModel() 方法的用途是什么?

c - 进行 URL 匹配和标签提取的有效方法是什么?

go - 使用 GoQuery 获取视频 src 时返回空白

arrays - 将非 slice 附加到 slice 图

go - Goland 中的默认文件观察器

string - 将二进制数据从字节数组转换为字符串并返回 golang 是否安全?

go - 为我的大学网站制作自定义RSS feed

go - 在 Go 中检测有符号整数溢出

go - 无法在 Go Gorilla 服务器中提供静态文件

go - 使用 Go SDK,如何将 DynamoDB 表项字段设置为 map ?