Maybe now godoc will pick it up

This commit is contained in:
Kegan Dougal 2016-11-30 12:00:12 +00:00
parent 8da9c2b9e6
commit 652dacf366
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
) )
func ExampleClientBuildURLWithQuery() { func ExampleClient_BuildURLWithQuery() {
cli, _ := NewClient("https://matrix.org", "@example:matrix.org", "abcdef123456") cli, _ := NewClient("https://matrix.org", "@example:matrix.org", "abcdef123456")
out := cli.BuildURLWithQuery([]string{"sync"}, map[string]string{ out := cli.BuildURLWithQuery([]string{"sync"}, map[string]string{
"filter_id": "5", "filter_id": "5",
@ -13,7 +13,7 @@ func ExampleClientBuildURLWithQuery() {
// Output: https://matrix.org/_matrix/client/r0/sync?access_token=abcdef123456&filter_id=5 // Output: https://matrix.org/_matrix/client/r0/sync?access_token=abcdef123456&filter_id=5
} }
func ExampleClientBuildURL() { func ExampleClient_BuildURL() {
userID := "@example:matrix.org" userID := "@example:matrix.org"
cli, _ := NewClient("https://matrix.org", userID, "abcdef123456") cli, _ := NewClient("https://matrix.org", userID, "abcdef123456")
out := cli.BuildURL("user", userID, "filter") out := cli.BuildURL("user", userID, "filter")
@ -21,7 +21,7 @@ func ExampleClientBuildURL() {
// Output: https://matrix.org/_matrix/client/r0/user/@example:matrix.org/filter?access_token=abcdef123456 // Output: https://matrix.org/_matrix/client/r0/user/@example:matrix.org/filter?access_token=abcdef123456
} }
func ExampleClientBuildBaseURL() { func ExampleClient_BuildBaseURL() {
userID := "@example:matrix.org" userID := "@example:matrix.org"
cli, _ := NewClient("https://matrix.org", userID, "abcdef123456") cli, _ := NewClient("https://matrix.org", userID, "abcdef123456")
out := cli.BuildBaseURL("_matrix", "client", "r0", "directory", "room", "#matrix:matrix.org") out := cli.BuildBaseURL("_matrix", "client", "r0", "directory", "room", "#matrix:matrix.org")