From 5c7c7564712efdd2e7cedeb0dd699c75dc503b7e Mon Sep 17 00:00:00 2001 From: Masaru Tsuchiyama Date: Fri, 23 Jul 2021 18:04:40 +0900 Subject: [PATCH] add missing tftp in an example. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c3eb3df..4524294 100644 --- a/README.md +++ b/README.md @@ -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)