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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
net.go
src/pkg/net/net.go
+15
-3
No files found.
src/pkg/net/net.go
View file @
158a0353
...
@@ -276,11 +276,23 @@ type Listener interface {
...
@@ -276,11 +276,23 @@ type Listener interface {
var
errMissingAddress
=
errors
.
New
(
"missing address"
)
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
{
type
OpError
struct
{
Op
string
// Op is the operation which caused the error, such as
Net
string
// "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
Addr
Addr
Err
error
// Err is the error that occurred during the operation.
Err
error
}
}
func
(
e
*
OpError
)
Error
()
string
{
func
(
e
*
OpError
)
Error
()
string
{
...
...
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