mirror of
				https://github.com/matrix-org/gomatrix
				synced 2025-11-03 22:08:04 +00:00 
			
		
		
		
	Change function names to get godoc to associate them correctly
This commit is contained in:
		
							parent
							
								
									527c6568c9
								
							
						
					
					
						commit
						8da9c2b9e6
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -1,8 +1,10 @@
 | 
			
		|||
package gomatrix
 | 
			
		||||
 | 
			
		||||
import "fmt"
 | 
			
		||||
import (
 | 
			
		||||
	"fmt"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func ExampleBuildURLWithQuery() {
 | 
			
		||||
func ExampleClientBuildURLWithQuery() {
 | 
			
		||||
	cli, _ := NewClient("https://matrix.org", "@example:matrix.org", "abcdef123456")
 | 
			
		||||
	out := cli.BuildURLWithQuery([]string{"sync"}, map[string]string{
 | 
			
		||||
		"filter_id": "5",
 | 
			
		||||
| 
						 | 
				
			
			@ -11,7 +13,7 @@ func ExampleBuildURLWithQuery() {
 | 
			
		|||
	// Output: https://matrix.org/_matrix/client/r0/sync?access_token=abcdef123456&filter_id=5
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func ExampleBuildURL() {
 | 
			
		||||
func ExampleClientBuildURL() {
 | 
			
		||||
	userID := "@example:matrix.org"
 | 
			
		||||
	cli, _ := NewClient("https://matrix.org", userID, "abcdef123456")
 | 
			
		||||
	out := cli.BuildURL("user", userID, "filter")
 | 
			
		||||
| 
						 | 
				
			
			@ -19,7 +21,7 @@ func ExampleBuildURL() {
 | 
			
		|||
	// Output: https://matrix.org/_matrix/client/r0/user/@example:matrix.org/filter?access_token=abcdef123456
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func ExampleBuildBaseURL() {
 | 
			
		||||
func ExampleClientBuildBaseURL() {
 | 
			
		||||
	userID := "@example:matrix.org"
 | 
			
		||||
	cli, _ := NewClient("https://matrix.org", userID, "abcdef123456")
 | 
			
		||||
	out := cli.BuildBaseURL("_matrix", "client", "r0", "directory", "room", "#matrix:matrix.org")
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue