go想對xml的時間自定義Unmarshal,那麼要滿足 xml.Unmarshaler 接口
type Unmarshaler interface {
UnmarshalXML(d *Decoder, start StartElement) error
}
| output DVI-D-1 mode 1920x1080@60Hz | |
| output DP-1 mode 1920x1080@60Hz | |
| bindsym $left resize shrink width 200px | |
| bindsym $down resize grow height 200px | |
| bindsym $up resize shrink height 200px | |
| bindsym $right resize grow width 200px | |
| bindsym Left resize shrink width 200px |
| module demo-draw-text | |
| go 1.23.0 | |
| require github.com/CarsonSlovoka/go-pkg/v2 v2.4.2-0.20240619074555-8d486f5913b0 |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func Example_int8_range() { | |
| for _, val := range []byte{ | |
| 0b1000_0000, | |
| 0b1000_0001, |
| package main | |
| import ( | |
| "bytes" | |
| "crypto" | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/sha256" | |
| "encoding/base64" | |
| "encoding/pem" |
go想對xml的時間自定義Unmarshal,那麼要滿足 xml.Unmarshaler 接口
type Unmarshaler interface {
UnmarshalXML(d *Decoder, start StartElement) error
}
| package main | |
| import ( | |
| "bytes" | |
| "crypto" | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/sha256" | |
| "encoding/base64" | |
| "encoding/pem" |
| <TTGlyph name="glyph1358" xMin="49" yMin="-99" xMax="975" yMax="832"> | |
| <contour> | |
| <pt x="139" y="685" on="1"/> | |
| <pt x="139" y="660" on="1"/> | |
| <pt x="169" y="620" on="0"/> | |
| <pt x="211" y="546" on="1"/> | |
| <pt x="222" y="563" on="1"/> | |
| <pt x="180" y="633" on="0"/> | |
| </contour> | |
| <contour> |
https://www.unicode.org/Public/15.1.0/ucd/EquivalentUnifiedIdeograph.
2E81 ; 5382 # CJK RADICAL CLIFF
2E82 ; 4E5B # CJK RADICAL SECOND ONE
# ...
2ED5 ; 28E0F # CJK RADICAL MOUND ONE
2E8C..2E8D ; 5C0F # [2] CJK RADICAL SMALL ONE..CJK RADICAL SMALL TWO