Skip to content

Commit

Permalink
add missing tftp in an example.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-tmatma committed Jul 23, 2021
1 parent b0a0cac commit 5c7c756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ c, err := tftp.NewClient("172.16.4.21:69")
wt, err := c.Receive("foobar.txt", "octet")
file, err := os.Create(path)
// Optionally obtain transfer size before actual data.
if n, ok := wt.(IncomingTransfer).Size(); ok {
if n, ok := wt.(tftp.IncomingTransfer).Size(); ok {
fmt.Printf("Transfer size: %d\n", n)
}
n, err := wt.WriteTo(file)
Expand Down

0 comments on commit 5c7c756

Please sign in to comment.