This commit is contained in:
2026-10-02 21:03:47 +02:00
parent 9d517f3607
commit b15620838b
20 changed files with 579 additions and 60 deletions
+21
View File
@@ -0,0 +1,21 @@
// Equivalente a examples/hello.c.
package main
import (
"bytes"
"fmt"
"goescpos/escpos"
)
func main() {
fmt.Println(escpos.Version)
// bytes.Buffer sustituye a todo src/buffer.c: crece solo y lo libera el GC.
var buf bytes.Buffer
for range 100 {
buf.WriteByte('A')
}
fmt.Printf("len=%d cap=%d\n", buf.Len(), buf.Cap())
}