William Basics

Keep learning, never ending.

WPF - Realtime charting by using DevExpress WPF toolkit

Realtime charting by using DevExpress WPF toolkit Realtime chart的用途十分广泛,特别是在测量领域尤为常见。 这个代码样例实现了一个realtime chart的原型,借助了DevEx

WPF - Localization on-the-fly

WPF的本地化或者说对多国语言的支持,微软官方给出的方案是借助Uid加上WPF Samples中的小工具locBaml来实现。这种方案的一个缺

WPF - Locbaml : Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly

这个error信息十分隐晦,解决方案是将LocBaml.exe拷贝到project的build目录下(xxxproject\bin\Debu

WPF - Creating Control Template Assembly

WPF - Creating Control Template Assembly 1. 新建一个WPF User Control Library project 删除 User Control1.xaml 2. Add New Item - Resource Dictionary MyButtonTemplate.xaml <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> </ResourceDictionary> 在MyButtonTemplate.xaml中加入template定义。

Go Concurrency

Concurrency in Go Go提供了两个独特创新的方式来实现并发,他们就是goroutine和channel。 goroutine是Go程序中可执行的最小单元。c

Go的函数

Go的函数 Go函数的定义以 func 关键词开头。 匿名函数 Go支持匿名函数,常常用于函数式编程中。匿名函数又被称为 闭包(closure) 多个返回值的函

Go 编译和打包

Go 编译和打包 你可以使用 go tool compile 命令来将代码编译为 .o (object)文件。 object文件中是go源代码的机器码。一般情况下,是无法直接执行的。

Go and JSON

Go - JSON encoding/json 包提供了对JSON格式文本的支持。 encoding/json 提供了4个函数 Encode() Decode() Marshal() Unmarshal() 前两者操作单个对象,后两者操作多个对象。 Encode and Decode JSON样例文件-readm

Go的基本数据类型

Go的基本数据类型 数字数据类型 整数 Go 支持 int8, int16, int32, int64, uint8, uint16, uint32, 以及 uint64。 一般直接用 int 和 unint 。 另外,byte 是 uint8 的别名。 浮点数 Go 支持 float32 和 float64 。前者