编码笔记

导航

03 2020 档案

Go语言中定时器的使用
摘要:GO语言在time包中提供了三种定时器的使用方式: 1.第一种:ticker // A Ticker holds a channel that delivers `ticks' of a clock // at intervals. type Ticker struct { C <-chan Tim 阅读全文

posted @ 2020-03-12 14:32 封三郎 阅读(10333) 评论(0) 推荐(0)

Go进行wasm编程
摘要:wasm即webAssemble,是一种不针对特定平台的二进制格式文件。Go从1.11开始支持wasm,最初通过js.NewCallBack()注册函数,1.12开始换成了FuncOf()。 Go开发wasm需要一个go文件用于编写实现代码,编译成.wasm文件;需要一个wasm_exec.js文件 阅读全文

posted @ 2020-03-10 13:40 封三郎 阅读(7487) 评论(1) 推荐(1)