mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
- fine-tuning of one-line func heuristic (nodes.go)
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
This commit is contained in:
parent
8c40900fc2
commit
368f8cbc75
213 changed files with 1297 additions and 3670 deletions
|
|
@ -370,23 +370,17 @@ func (server *serverType) accept(lis net.Listener) {
|
|||
// - one return value of type os.Error
|
||||
// It returns an error if the receiver is not public or has no
|
||||
// suitable methods.
|
||||
func Register(rcvr interface{}) os.Error {
|
||||
return server.register(rcvr);
|
||||
}
|
||||
func Register(rcvr interface{}) os.Error { return server.register(rcvr) }
|
||||
|
||||
// ServeConn runs the server on a single connection. When the connection
|
||||
// completes, service terminates. ServeConn blocks; the caller typically
|
||||
// invokes it in a go statement.
|
||||
func ServeConn(conn io.ReadWriteCloser) {
|
||||
go server.input(conn);
|
||||
}
|
||||
func ServeConn(conn io.ReadWriteCloser) { go server.input(conn) }
|
||||
|
||||
// Accept accepts connections on the listener and serves requests
|
||||
// for each incoming connection. Accept blocks; the caller typically
|
||||
// invokes it in a go statement.
|
||||
func Accept(lis net.Listener) {
|
||||
server.accept(lis);
|
||||
}
|
||||
func Accept(lis net.Listener) { server.accept(lis) }
|
||||
|
||||
// Can connect to RPC service using HTTP CONNECT to rpcPath.
|
||||
var rpcPath string = "/_goRPC_"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue