go知识重新整理

This commit is contained in:
Estom
2021-09-03 05:34:34 +08:00
parent 62309f856a
commit 1bad082e49
291 changed files with 29345 additions and 2 deletions

11
Go/gopkg/errors/errors.go Normal file
View File

@@ -0,0 +1,11 @@
package main
import (
"errors"
"fmt"
)
func main() {
fmt.Printf("%T\n", errors.New("err occurred")) // *errors.errorString
fmt.Printf("%T\n", fmt.Errorf("err occurred")) // *errors.errorString
}