rename example functions for correct godoc appearance
This commit is contained in:
parent
732622f4db
commit
f2abf8893c
@ -4,8 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleConnect() {
|
func ExampleHubConnectionOptions_Connect() {
|
||||||
|
|
||||||
opts := HubConnectionOptions{
|
opts := HubConnectionOptions{
|
||||||
Address: "127.0.0.1",
|
Address: "127.0.0.1",
|
||||||
Self: *NewUserInfo("slowpoke9"),
|
Self: *NewUserInfo("slowpoke9"),
|
||||||
@ -31,8 +30,7 @@ func ExampleConnect() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func ExampleConnectSync() {
|
func ExampleHubConnectionOptions_ConnectSync() {
|
||||||
|
|
||||||
cb := func(hub *HubConnection, event HubEvent) {
|
cb := func(hub *HubConnection, event HubEvent) {
|
||||||
switch event.EventType {
|
switch event.EventType {
|
||||||
case EVENT_CONNECTION_STATE_CHANGED:
|
case EVENT_CONNECTION_STATE_CHANGED:
|
||||||
|
Loading…
Reference in New Issue
Block a user