Skip to content

Commit 0161c5d

Browse files
authored
Merge pull request #66 from m-tmatma/feature/fix-client-example
add missing tftp in an example.
2 parents b0a0cac + 5c7c756 commit 0161c5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ c, err := tftp.NewClient("172.16.4.21:69")
9292
wt, err := c.Receive("foobar.txt", "octet")
9393
file, err := os.Create(path)
9494
// Optionally obtain transfer size before actual data.
95-
if n, ok := wt.(IncomingTransfer).Size(); ok {
95+
if n, ok := wt.(tftp.IncomingTransfer).Size(); ok {
9696
fmt.Printf("Transfer size: %d\n", n)
9797
}
9898
n, err := wt.WriteTo(file)

0 commit comments

Comments
 (0)