Assertion

Posted by 夏泽民

Type assertion(断言)是用于 interface value 的一种操作,语法是 x.(T),x 是 interface type 的表达式,而 T 是 assertd type,被断言的类型。



unsafe

Posted by 夏泽民

unsafe包含以下资源:



godoc

Posted by 夏泽民

一. 约定 注释符//后面要加空格, 例如: // xxx



builtin

Posted by 夏泽民

type bool bool 这种定义有两种用途: 1,提供godoc 文档 2,帮助IDE定位到内部标识的注释 1、介绍builtin包



Reflection

Posted by 夏泽民

https://blog.golang.org/laws-of-reflection Introduction Reflection in computing is the ability of a program to examine its own structure, particularly through types; it’s a form of metaprogramming. It’s also a great source of confusion.



Search

Popular posts

Anything in here will be replaced on browsers that support the canvas element

Recent posts

This blog is maintained by 夏泽民

Get in touch with me at 465474307@qq.com

Subscribe to our mailing list

* indicates required