当前位置: 首页 > news >正文

做图片网站 侵权怎么用dw做静态网站

做图片网站 侵权,怎么用dw做静态网站,北京网站设计,上海仓储公司定义说明 静态类型(static type):在编码时就能确定的类型,通过变量定义可以确定的类型;动态类型(concrete type):在运行时才能确定具体的数据类型; 动态静态类型如何理…

定义说明

  • 静态类型(static type):在编码时就能确定的类型,通过变量定义可以确定的类型;
  • 动态类型(concrete type):在运行时才能确定具体的数据类型;

动态静态类型如何理解?

go 语言中interface(any)可以承接所有类型的数据,所以这部分只有具体运行的时候,才能确定数据具体类型:

	var i interface{}var num int = 1var str string = "hello world"i = numi= str

在该示例中,第一行声明了一个interface的变量i,在编码时就可以确定了,所以i的静态类型就是interface;
同理,第二行num的静态类型为int,第三行str的静态类型为string
第四行,把num赋值给inum的实际类型是int, 所以此时,i的动态类型就是int
第五行,把str赋值给inum的实际类型是string,所以此时,i的动态类型就是string

Golang 中的interface的底层延申:

golang 中interface有两种含义/用法:

  1. 常规的接口类型,有一些带实现的接口定义
  2. 表示任意数据类型any

golang 的底层实现也是根据这两种情况做了不同的实现,底层分别对应ifaceeface

// 空接口结构
type eface struct {_type *_type			// 实体类型data  unsafe.Pointer	// 数据地址
}// 包含方法的结构
type iface struct {tab  *itab			// 接口和实体类型data unsafe.Pointer	// 数据地址
}type itab struct {inter *interfacetype_type *_typehash  uint32 // copy of _type.hash. Used for type switches._     [4]bytefun   [1]uintptr // variable sized. fun[0]==0 means _type does not implement inter.
}type interfacetype struct {typ     _typepkgpath namemhdr    []imethod
}type imethod struct {name nameOffityp typeOff
}type _type struct {size       uintptrptrdata    uintptr // size of memory prefix holding all pointershash       uint32tflag      tflagalign      uint8fieldAlign uint8kind       uint8// function for comparing objects of this type// (ptr to object A, ptr to object B) -> ==?equal func(unsafe.Pointer, unsafe.Pointer) bool// gcdata stores the GC type data for the garbage collector.// If the KindGCProg bit is set in kind, gcdata is a GC program.// Otherwise it is a ptrmask bitmap. See mbitmap.go for details.gcdata    *bytestr       nameOffptrToThis typeOff
}type nameOff int32
type typeOff int32
type tflag uint8
http://www.15wanjia.com/news/176474.html

相关文章:

  • 门户网站建设的重要作用西安单位网站建设
  • 新吴区住房和城乡建设部网站搜索广告和信息流广告区别
  • 北京亦庄做网站公司免费无代码开发平台排行榜
  • 学校的网站管理系统如何做宣传推广营销
  • 做服装网站阳江兼职招聘网
  • 网站后台无法上传附件wordpress 响应式 企业网站
  • jsp网站开发难吗图片网站的优化
  • 免费php外贸网站模板android开发工具下载
  • 网站备案被拒wordpress外贸网店主题
  • 常州市城投建设工程招标有限公司网站北京市住房建设投资中心网站
  • 网站mip怎么做wordpress主题 二次元
  • 福州网站建设服务商怎样用ps做网站首页图
  • 正安县网站seo优化排名网站专题策划方案书
  • 网站后缀com唐山住房和城乡建设网站
  • 仙居网站建设贴吧苏州专业网站建设设计公司
  • 合肥智能建站模板免费开发app平台下载
  • 苏州网站建设狮山路wordpress 收费阅读
  • 合肥有哪些做网站的服务器做网站哪个系统好
  • 撤销网站备案表填写后尤溪网站开发
  • 网站分享组件公司制作一个网站
  • 建设银行网站用户名更改合肥网站开发培训
  • 建设交流网站重庆綦江网站制作公司哪家专业
  • 分享代码的网站重庆专业网站推广方案
  • 网络游戏网站开发led行业网站源码
  • 网站排队队列怎么做现代感网站
  • 西安学校网站建设公司谷歌seo怎么提高网站权重
  • 三星网站建设内容wordpress 后台用户权限
  • 什么是网站单页优秀的手机网站标准
  • 2021年有没有人给个网站帝国网站模板建设
  • 网站设建设表单淮安住房与城乡建设部网站