Conan 1.18 Documentation
com/conan-io/conan for issues and more details about development, contributors, etc. Important: Conan 1.18 shouldn’t break any existing 1.0 recipe or command line invocation. If it does, please submit a report0 码力 | 584 页 | 4.80 MB | 1 年前3Go 1.18 中的泛型
Go 1.18 中的泛型 欧长坤 changkun.de/s/generics118 2022/03/30 1 语法和使用 2 什么时候需要泛型? 3 当使用接口作为函数的形参类型时,函数调用方传递的实际参数可以是完全不同的 类型: type T interface { Add(T) T } func Sum(elems ...T) (sum T) { // T 可以是任何实现 Pick[S ~[]Elem, Elem interface{}](s S) Elem // => func Pick[S ~[]Elem, Elem any](s S) Elem ← 从 1.18 开始,any 是 interface{} 的一个别名 // => func Pick[S ~[]any](s S) any ← 不推荐简化到这种情况 11 类型参数的声明和化简 Pick[S ~[]Elem, Elem interface{}](s S) Elem // => func Pick[S ~[]Elem, Elem any](s S) Elem ← 从 1.18 开始,any 是 interface{} 的一个别名 // => func Pick[S ~[]any](s S) any ← 不推荐简化到这种情况 12 https://go0 码力 | 45 页 | 501.50 KB | 1 年前3Go 101 (Golang 101) v1.21.0
safety. automatic garbage collection. great cross-platform compatibility. custom generics (since Go 1.18). Besides the above features, further highlights are: The syntax of Go is deliberately designed database development and block chain development areas. With the introduction of custom generics in Go 1.18, it is expected that Go will be used more and more in some other areas, such as gui/game, big data types. But since Go 1.18, the Go specificaiton clarifies that predeclared built-in types are not defined types. Concept: Custom Generic Types and Instantiated Types Since Go 1.18, Go has supported custom0 码力 | 610 页 | 945.17 KB | 1 年前3Go 101 (Golang 101) v1.21.0
safety. automatic garbage collection. great cross-platform compatibility. custom generics (since Go 1.18). Besides the above features, further highlights are: The syntax of Go is deliberately designed database development and block chain development areas. With the introduction of custom generics in Go 1.18, it is expected that Go will be used more and more in some other areas, such as gui/game, big data types. But since Go 1.18, the Go specificaiton clarifies that predeclared built-in types are not defined types. Concept: Custom Generic Types and Instantiated Types Since Go 1.18, Go has supported custom0 码力 | 880 页 | 833.34 KB | 1 年前3Go 101 (Golang 101) v1.21.0
safety. automatic garbage collection. great cross-platform compatibility. custom generics (since Go 1.18). Besides the above features, further highlights are: The syntax of Go is deliberately designed database development and block chain development areas. With the introduction of custom generics in Go 1.18, it is expected that Go will be used more and more in some other areas, such as gui/game, big data types. But since Go 1.18, the Go specificaiton clarifies that predeclared built-in types are not defined types. Concept: Custom Generic Types and Instantiated Types Since Go 1.18, Go has supported custom0 码力 | 630 页 | 3.77 MB | 1 年前3Centos7安装Nginx或OpenResty
上下载(或者在其他地方下载再复制到 centos7 系统里) # wget -c https://nginx.org/download/nginx-1.18.xx.tar.gz //下载源代码压缩包 # tar -xf nginx-1.18.xx.tar.gz //解压源码包 # cd nginx-1.18.xx //进入解压目录 # ./configure --prefix=/usr/local/nginx \ --0 码力 | 7 页 | 153.82 KB | 1 年前3Golang 101(Go语言101 中文版) v1.21.a
支持类型内嵌(type embedding)。 支持类型推断(type deduction or type inference)。 内存安全。 自动垃圾回收。 良好的代码跨平台性。 自定义泛型(从Go 1.18开始)。 除了以上特性,Go还有如下亮点: Go的语法很简洁并且和其它流行语言相似。 这使得具有一定编程经验的 程序员很容易上手Go编程。 当然,对于没有编程经验的初学者,Go也比 很多其它流行编程语言更容易上手一些。 内置并发支持 上面所有提到的优点使得Go成为一个出众的编程语言。 对于很多项目来说, Go是一个相当不错的选择。 目前,Go主要用于网络开发、系统工具开发、数 据库开发和区块链开发。 随着从Go 1.18开始支持自定义泛型,预期Go会在更 多开发领域流行起来,比如图形界面、游戏、大数据和人工智能等。 最后,我们应该知道,没有一门语言是完美的。Go也一样。Go的设计中有很 多折衷和各种权衡。Go 1确实有一些不足。 | } 请注意:从Go 1.9到Go 1.17,Go白皮书曾经把预声明类型视为定义类型。 但 是从Go 1.18开始,Go白皮书明确说明预声明类型不再属于定义类型。 概念:自定义泛型类型和实例化类型(generic type and instantiated types) 从Go 1.18开始,Go开始支持自定义泛型类型(和函数)。 一个泛型类型必须 被实例化才能被用做值类型。 一个泛型类型0 码力 | 821 页 | 956.82 KB | 1 年前3Golang 101(Go语言101 中文版) v1.21.a
支持类型内嵌(type embedding)。 支持类型推断(type deduction or type inference)。 内存安全。 自动垃圾回收。 良好的代码跨平台性。 自定义泛型(从Go 1.18开始)。 除了以上特性,Go还有如下亮点: Go的语法很简洁并且和其它流行语言相似。 这使得具有一定编程经验的程 序员很容易上手Go编程。 当然,对于没有编程经验的初学者,Go也比很 多其它流行编程语言更容易上手一些。 内置并发支持 上面所有提到的优点使得Go成为一个出众的编程语言。 对于很多项目来说, Go是一个相当不错的选择。 目前,Go主要用于网络开发、系统工具开发、数 据库开发和区块链开发。 随着从Go 1.18开始支持自定义泛型,预期Go会在更 多开发领域流行起来,比如图形界面、游戏、大数据和人工智能等。 最后,我们应该知道,没有一门语言是完美的。Go也一样。Go的设计中有很多 折衷和各种权衡。Go 1确实有一些不足。 int} } 请注意:从Go 1.9到Go 1.17,Go白皮书曾经把预声明类型视为定义类型。 但是 从Go 1.18开始,Go白皮书明确说明预声明类型不再属于定义类型。 概念:自定义泛型类型和实例化类型(generic type and instantiated types) 从Go 1.18开始,Go开始支持自定义泛型类型(和函数)。 一个泛型类型必须 被实例化才能被用做值类型。 一个泛型类型0 码力 | 608 页 | 1.08 MB | 1 年前3Gitea v1.21.1 中文文档
H_GIT_APPLY :使用三方合并方法测试 PR Patch 以发现是否存在冲突。如果此设 置 true ,将使用 git apply 重新测试冲突的 PR Pathch - 这是1.18(和之前版本)中的先前行为,但效率相 对较低。如果发现需要此设置,请报告。 LOCK_REASONS : Too heated,Off-topic,Resolved,Spam: 合并请求或工单被锁定的原因列表。 ecdhe_rsa_with_chacha20_poly1305:设置首选的密码套件。 如果没有对 AES 套件的硬件支持,默认情况下,ChaCha 套件将优先于 AES 套件。 根据 Go 1.18 的支持的套件有: TLS 1.0 - 1.2 套件 “rsa_with_rc4_128_sha” “rsa_with_3des_ede_cbc_sha” “rsa_with_aes_128_cbc_sha” Webhook ( webhook ) 配置说明 - 104 - 本文档使用 书栈网 · BookStack.CN 构建 机。如果未提供,将使用全局代理设置。 ⚠ 此部分适用于 Gitea 1.18 及更高版本。如果您使用的是 Gitea 1.17 或更早版本,请阅读以下链接获取更多 信息: Gitea 1.17 app.ini 示例 和 Gitea 1.17 配置文档 ENABLED0 码力 | 303 页 | 3.88 MB | 1 年前3Golang 101(Go语言101 中文版) v1.21.a
支持类型内嵌(type embedding)。 支持类型推断(type deduction or type inference)。 内存安全。 自动垃圾回收。 良好的代码跨平台性。 自定义泛型(从Go 1.18开始)。 除了以上特性,Go还有如下亮点: Go的语法很简洁并且和其它流行语言相似。 这使得具有一定编程经验的程序 员很容易上手Go编程。 当然,对于没有编程经验的初学者,Go也比很多其它 流行编程语言更容易上手一些。 内置并发支持 上面所有提到的优点使得Go成为一个出众的编程语言。 对于很多项目来说,Go是一 个相当不错的选择。 目前,Go主要用于网络开发、系统工具开发、数据库开发和区 块链开发。 随着从Go 1.18开始支持自定义泛型,预期Go会在更多开发领域流行起 来,比如图形界面、游戏、大数据和人工智能等。 第2章:Go语言简介 10 最后,我们应该知道,没有一门语言是完美的。Go也一样。Go的设计中有很多折衷 } 请注意:从Go 1.9到Go 1.17,Go白皮书曾经把预声明类型视为定义类型。 但是从 Go 1.18开始,Go白皮书明确说明预声明类型不再属于定义类型。 概念:自定义泛型类型和实例化类型(generic type and instantiated types) 从Go 1.18开始,Go开始支持自定义泛型类型(和函数)。 一个泛型类型必须被实 例化才能被用做值类型。 一个泛型类0 码力 | 591 页 | 21.40 MB | 1 年前3
共 366 条
- 1
- 2
- 3
- 4
- 5
- 6
- 37