Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
158a0353
Commit
158a0353
authored
Feb 14, 2013
by
Brad Fitzpatrick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: document OpError
Fixes #4797 R=adg, rsc CC=golang-dev
https://golang.org/cl/7300099
parent
8e7d1562
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
net.go
src/pkg/net/net.go
+12
-0
No files found.
src/pkg/net/net.go
View file @
158a0353
...
...
@@ -276,10 +276,22 @@ type Listener interface {
var
errMissingAddress
=
errors
.
New
(
"missing address"
)
// OpError is the error type usually returned by functions in the net
// package. It describes the operation, network type, and address of
// an error.
type
OpError
struct
{
// Op is the operation which caused the error, such as
// "read" or "write".
Op
string
// Net is the network type on which this error occurred,
// such as "tcp" or "udp6".
Net
string
// Addr is the network address on which this error occurred.
Addr
Addr
// Err is the error that occurred during the operation.
Err
error
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment