]> Cypherpunks repositories - gostls13.git/commit
net: add example for net.UDPConn.WriteTo function
authorAdam Medzinski <adam.medzinski@gmail.com>
Fri, 18 May 2018 14:54:30 +0000 (16:54 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 23 May 2018 18:24:17 +0000 (18:24 +0000)
commit645d4726f0f36c3aec9c864f47411a74c20ebc70
treec9ea0ba5f915859a5162695a4d526ba77b178385
parent7ba1c91dd999681425c2e1053b854f218ea3f2f8
net: add example for net.UDPConn.WriteTo function

The current documentation of the WriteTo function is very poor and it
is difficult to deduce how to use it correctly. A good example will
make things much easier.

Fixes #25456

Change-Id: Ibf0c0e153afae8f3e0d7d765d0dc9bcbfd69bfb1
Reviewed-on: https://go-review.googlesource.com/113775
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/example_test.go