From 1b6f533cda244a40b87728bc475d46827d6846b2 Mon Sep 17 00:00:00 2001 From: Dominic Wong Date: Fri, 7 Jan 2022 11:05:22 +0000 Subject: [PATCH] remove search example --- examples/search/README.md | 34 ---------------------- examples/search/vote/voteForTheApi/main.go | 17 ----------- 2 files changed, 51 deletions(-) delete mode 100755 examples/search/README.md delete mode 100755 examples/search/vote/voteForTheApi/main.go diff --git a/examples/search/README.md b/examples/search/README.md deleted file mode 100755 index 7f5faad..0000000 --- a/examples/search/README.md +++ /dev/null @@ -1,34 +0,0 @@ -# Search - -An [m3o.com](https://m3o.com) API. For example usage see [m3o.com/Search/api](https://m3o.com/Search/api). - -Endpoints: - -## Vote - -Vote to have the Search api launched faster! - - -[https://m3o.com/search/api#Vote](https://m3o.com/search/api#Vote) - -```go -package example - -import( - "fmt" - "os" - - "go.m3o.com/search" -) - -// Vote to have the Search api launched faster! -func VoteForTheApi() { - searchService := search.NewSearchService(os.Getenv("M3O_API_TOKEN")) - rsp, err := searchService.Vote(&search.VoteRequest{ - Message: "Launch it!", - - }) - fmt.Println(rsp, err) - -} -``` diff --git a/examples/search/vote/voteForTheApi/main.go b/examples/search/vote/voteForTheApi/main.go deleted file mode 100755 index 43c4154..0000000 --- a/examples/search/vote/voteForTheApi/main.go +++ /dev/null @@ -1,17 +0,0 @@ -package main - -import ( - "fmt" - "os" - - "go.m3o.com/search" -) - -// Vote to have the Search api launched faster! -func main() { - searchService := search.NewSearchService(os.Getenv("M3O_API_TOKEN")) - rsp, err := searchService.Vote(&search.VoteRequest{ - Message: "Launch it!", - }) - fmt.Println(rsp, err) -}