We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b0a0cac + 5c7c756 commit 0161c5dCopy full SHA for 0161c5d
README.md
@@ -92,7 +92,7 @@ c, err := tftp.NewClient("172.16.4.21:69")
92
wt, err := c.Receive("foobar.txt", "octet")
93
file, err := os.Create(path)
94
// Optionally obtain transfer size before actual data.
95
-if n, ok := wt.(IncomingTransfer).Size(); ok {
+if n, ok := wt.(tftp.IncomingTransfer).Size(); ok {
96
fmt.Printf("Transfer size: %d\n", n)
97
}
98
n, err := wt.WriteTo(file)
0 commit comments