This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[snippets]] | |
description = "Sync upload" | |
command = "pet sync -u" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var err error | |
write := func(buf []byte) { | |
if err != nil { | |
return | |
} | |
_, err = w.Write(buf) | |
} | |
write(p0[a:b]) | |
write(p1[c:d]) | |
write(p2[e:f]) |