Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
src/pkg/net/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 {
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
string
Net
string
// 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
error
// Err is the error that occurred during the operation.
Err
error
}
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