From 5cee69a09ec0fd0a53f0884b9b46e39d3aa10ecb Mon Sep 17 00:00:00 2001 From: asim Date: Fri, 22 Oct 2021 19:41:37 +0000 Subject: [PATCH] Commit from GitHub Actions (Publish APIs & Clients) --- clients/ts/package.json | 2 +- examples/address/lookupPostcode/go/lookupPostcode.go | 3 ++- examples/answer/question/go/askAQuestion.go | 3 ++- examples/cache/decrement/go/decrementAValue.go | 3 ++- examples/cache/delete/go/deleteAValue.go | 3 ++- examples/cache/get/go/getAValue.go | 3 ++- examples/cache/increment/go/incrementAValue.go | 3 ++- examples/cache/set/go/setAValue.go | 3 ++- examples/crypto/history/go/getPreviousClose.go | 3 ++- examples/crypto/news/go/getCryptocurrencyNews.go | 3 ++- examples/crypto/price/go/getCryptocurrencyPrice.go | 3 ++- examples/crypto/quote/go/getACryptocurrencyQuote.go | 3 ++- examples/currency/codes/go/getSupportedCodes.go | 3 ++- examples/currency/convert/go/convert10UsdToGbp.go | 3 ++- examples/currency/convert/go/convertUsdToGbp.go | 3 ++- examples/currency/history/go/historicRatesForACurrency.go | 3 ++- examples/currency/rates/go/getRatesForUsd.go | 3 ++- examples/db/count/go/countEntriesInATable.go | 3 ++- examples/db/create/go/createARecord.go | 5 +++-- examples/db/delete/go/deleteARecord.go | 3 ++- examples/db/read/go/readRecords.go | 3 ++- examples/db/truncate/go/truncateTable.go | 3 ++- examples/db/update/go/updateARecord.go | 3 ++- examples/email/send/go/sendEmail.go | 3 ++- examples/emoji/find/go/findEmoji.go | 3 ++- examples/emoji/flag/go/getFlagByCountryCode.go | 3 ++- examples/emoji/print/go/printTextIncludingEmoji.go | 3 ++- .../send/go/sendATextContainingAnEmojiToAnyoneViaSms.go | 3 ++- examples/evchargers/referenceData/go/getReferenceData.go | 3 ++- examples/evchargers/search/go/searchByBoundingBox.go | 3 ++- examples/evchargers/search/go/searchByLocation.go | 3 ++- .../search/go/searchWithFiltersFastChargersOnly.go | 3 ++- examples/file/delete/go/deleteFile.go | 3 ++- examples/file/list/go/listFiles.go | 3 ++- examples/file/read/go/readFile.go | 3 ++- examples/file/save/go/saveFile.go | 3 ++- examples/forex/history/go/getPreviousClose.go | 3 ++- examples/forex/price/go/getAnFxPrice.go | 3 ++- examples/forex/quote/go/getAFxQuote.go | 3 ++- examples/function/call/go/callAFunction.go | 3 ++- examples/function/delete/go/deleteAFunction.go | 3 ++- examples/function/deploy/go/deployAFunction.go | 3 ++- examples/function/describe/go/describeFunctionStatus.go | 3 ++- examples/function/list/go/listFunctions.go | 3 ++- examples/geocoding/lookup/go/geocodeAnAddress.go | 3 ++- examples/geocoding/reverse/go/reverseGeocodeLocation.go | 3 ++- examples/helloworld/call/go/callTheHelloworldService.go | 3 ++- .../streamsAreCurrentlyTemporarilyNotSupportedInClients.go | 3 ++- examples/holidays/countries/go/listCountries.go | 3 ++- examples/holidays/list/go/getHolidays.go | 3 ++- examples/id/generate/go/generateABigflakeId.go | 3 ++- examples/id/generate/go/generateAShortId.go | 3 ++- examples/id/generate/go/generateASnowflakeId.go | 3 ++- examples/id/generate/go/generateAUniqueId.go | 3 ++- examples/id/types/go/listTheTypesOfIdsAvailable.go | 3 ++- ...APngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.go | 3 ++- examples/image/resize/go/base64ToBase64Image.go | 3 ++- examples/image/resize/go/base64ToBase64ImageWithCropping.go | 3 ++- examples/image/resize/go/base64ToHostedImage.go | 3 ++- examples/image/upload/go/uploadABase64ImageToMicrosCdn.go | 3 ++- examples/image/upload/go/uploadAnImageFromAUrlToMicrosCdn.go | 3 ++- examples/ip/lookup/go/lookupIpInfo.go | 3 ++- examples/location/read/go/getLocationById.go | 3 ++- examples/location/save/go/saveAnEntity.go | 3 ++- examples/location/search/go/searchForLocations.go | 3 ++- examples/notes/create/go/createANote.go | 3 ++- examples/notes/delete/go/deleteANote.go | 3 ++- examples/notes/list/go/listAllNotes.go | 3 ++- examples/notes/read/go/readANote.go | 3 ++- examples/notes/update/go/updateANote.go | 3 ++- examples/otp/generate/go/generateOtp.go | 3 ++- examples/otp/validate/go/validateOtp.go | 3 ++- examples/postcode/lookup/go/lookupPostcode.go | 3 ++- .../random/go/returnARandomPostcodeAndItsInformation.go | 3 ++- .../validate/go/returnARandomPostcodeAndItsInformation.go | 3 ++- examples/prayer/times/go/prayerTimes.go | 3 ++- examples/qr/generate/go/generateAQrCode.go | 3 ++- examples/quran/chapters/go/listChapters.go | 3 ++- examples/quran/search/go/searchTheQuran.go | 3 ++- examples/quran/summary/go/getChapterSummary.go | 3 ++- examples/quran/verses/go/getVersesOfAChapter.go | 3 ++- examples/routing/directions/go/turnByTurnDirections.go | 3 ++- examples/routing/eta/go/etaFromPointAToPointB.go | 3 ++- examples/routing/route/go/gpsPointsForARoute.go | 3 ++- examples/rss/add/go/addANewFeed.go | 3 ++- examples/rss/feed/go/readAFeed.go | 3 ++- examples/rss/list/go/listRssFeeds.go | 3 ++- examples/rss/remove/go/removeAFeed.go | 3 ++- examples/sentiment/analyze/go/analyzeAPieceOfText.go | 3 ++- examples/sms/send/go/sendSms.go | 3 ++- examples/stock/history/go/getHistoricData.go | 3 ++- examples/stock/orderBook/go/orderBookHistory.go | 3 ++- examples/stock/price/go/getAStockPrice.go | 3 ++- examples/stock/quote/go/getAStockQuote.go | 3 ++- examples/stream/publish/go/publishAMessage.go | 5 +++-- examples/stream/subscribe/go/subscribeToATopic.go | 3 ++- examples/sunnah/books/go/getTheBooksWithinACollection.go | 3 ++- examples/sunnah/chapters/go/listTheChaptersInABook.go | 3 ++- examples/sunnah/collections/go/listAvailableCollections.go | 3 ++- examples/sunnah/hadiths/go/listTheHadithsInABook.go | 3 ++- examples/thumbnail/screenshot/go/takeScreenshotOfAUrl.go | 3 ++- .../time/now/go/returnsCurrentTimeOptionallyWithLocation.go | 3 ++- .../time/zone/go/getTheTimezoneInfoForASpecificLocation.go | 3 ++- examples/twitter/search/go/searchForTweets.go | 3 ++- examples/twitter/timeline/go/getATwitterTimeline.go | 3 ++- .../twitter/trends/go/getTheCurrentGlobalTrendingTopics.go | 3 ++- examples/twitter/user/go/getAUsersTwitterProfile.go | 3 ++- examples/url/list/go/listYourShortenedUrls.go | 3 ++- .../url/proxy/go/resolveAShortUrlToALongDestinationUrl.go | 3 ++- examples/url/shorten/go/shortenALongUrl.go | 3 ++- examples/user/create/go/createAnAccount.go | 3 ++- examples/user/delete/go/deleteUserAccount.go | 3 ++- examples/user/login/go/logAUserIn.go | 3 ++- examples/user/logout/go/logAUserOut.go | 3 ++- examples/user/read/go/readAccountByEmail.go | 3 ++- examples/user/read/go/readAccountByUsernameOrEmail.go | 3 ++- examples/user/read/go/readAnAccountById.go | 3 ++- examples/user/readSession/go/readASessionByTheSessionId.go | 3 ++- .../user/sendVerificationEmail/go/sendVerificationEmail.go | 3 ++- examples/user/update/go/updateAnAccount.go | 3 ++- examples/user/updatePassword/go/updateTheAccountPassword.go | 3 ++- examples/user/verifyEmail/go/verifyEmail.go | 3 ++- examples/vehicle/lookup/go/lookupVehicle.go | 3 ++- examples/weather/forecast/go/forecastWeather.go | 3 ++- examples/weather/now/go/getCurrentWeather.go | 3 ++- 125 files changed, 251 insertions(+), 127 deletions(-) diff --git a/clients/ts/package.json b/clients/ts/package.json index 36037d5..4f27fb0 100644 --- a/clients/ts/package.json +++ b/clients/ts/package.json @@ -74,5 +74,5 @@ "prepare": "npm run build" }, "types": "index.d.ts", - "version": "1.0.558" + "version": "1.0.559" } \ No newline at end of file diff --git a/examples/address/lookupPostcode/go/lookupPostcode.go b/examples/address/lookupPostcode/go/lookupPostcode.go index 81f87d4..898df18 100755 --- a/examples/address/lookupPostcode/go/lookupPostcode.go +++ b/examples/address/lookupPostcode/go/lookupPostcode.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/address" "os" + + "github.com/micro/services/clients/go/address" ) // Lookup a list of UK addresses by postcode diff --git a/examples/answer/question/go/askAQuestion.go b/examples/answer/question/go/askAQuestion.go index 8fe3a03..dd4b674 100755 --- a/examples/answer/question/go/askAQuestion.go +++ b/examples/answer/question/go/askAQuestion.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/answer" "os" + + "github.com/micro/services/clients/go/answer" ) // Ask a question and receive an instant answer diff --git a/examples/cache/decrement/go/decrementAValue.go b/examples/cache/decrement/go/decrementAValue.go index c9e5099..2e7a16c 100755 --- a/examples/cache/decrement/go/decrementAValue.go +++ b/examples/cache/decrement/go/decrementAValue.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/cache" "os" + + "github.com/micro/services/clients/go/cache" ) // Decrement a value (if it's a number) diff --git a/examples/cache/delete/go/deleteAValue.go b/examples/cache/delete/go/deleteAValue.go index 9abd8f4..3d486fa 100755 --- a/examples/cache/delete/go/deleteAValue.go +++ b/examples/cache/delete/go/deleteAValue.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/cache" "os" + + "github.com/micro/services/clients/go/cache" ) // Delete a value from the cache diff --git a/examples/cache/get/go/getAValue.go b/examples/cache/get/go/getAValue.go index 86d2120..332ce6f 100755 --- a/examples/cache/get/go/getAValue.go +++ b/examples/cache/get/go/getAValue.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/cache" "os" + + "github.com/micro/services/clients/go/cache" ) // Get an item from the cache by key diff --git a/examples/cache/increment/go/incrementAValue.go b/examples/cache/increment/go/incrementAValue.go index ec6c2cf..7d1963a 100755 --- a/examples/cache/increment/go/incrementAValue.go +++ b/examples/cache/increment/go/incrementAValue.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/cache" "os" + + "github.com/micro/services/clients/go/cache" ) // Increment a value (if it's a number) diff --git a/examples/cache/set/go/setAValue.go b/examples/cache/set/go/setAValue.go index 5f0a09e..1936fd8 100755 --- a/examples/cache/set/go/setAValue.go +++ b/examples/cache/set/go/setAValue.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/cache" "os" + + "github.com/micro/services/clients/go/cache" ) // Set an item in the cache. Overwrites any existing value already set. diff --git a/examples/crypto/history/go/getPreviousClose.go b/examples/crypto/history/go/getPreviousClose.go index c627158..567f5a4 100755 --- a/examples/crypto/history/go/getPreviousClose.go +++ b/examples/crypto/history/go/getPreviousClose.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/crypto" "os" + + "github.com/micro/services/clients/go/crypto" ) // Returns the history for the previous close diff --git a/examples/crypto/news/go/getCryptocurrencyNews.go b/examples/crypto/news/go/getCryptocurrencyNews.go index 3595cd8..3adc38b 100755 --- a/examples/crypto/news/go/getCryptocurrencyNews.go +++ b/examples/crypto/news/go/getCryptocurrencyNews.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/crypto" "os" + + "github.com/micro/services/clients/go/crypto" ) // Get news related to a currency diff --git a/examples/crypto/price/go/getCryptocurrencyPrice.go b/examples/crypto/price/go/getCryptocurrencyPrice.go index f939f4a..466d1c9 100755 --- a/examples/crypto/price/go/getCryptocurrencyPrice.go +++ b/examples/crypto/price/go/getCryptocurrencyPrice.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/crypto" "os" + + "github.com/micro/services/clients/go/crypto" ) // Get the last price for a given crypto ticker diff --git a/examples/crypto/quote/go/getACryptocurrencyQuote.go b/examples/crypto/quote/go/getACryptocurrencyQuote.go index 183aff6..f32efc2 100755 --- a/examples/crypto/quote/go/getACryptocurrencyQuote.go +++ b/examples/crypto/quote/go/getACryptocurrencyQuote.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/crypto" "os" + + "github.com/micro/services/clients/go/crypto" ) // Get the last quote for a given crypto ticker diff --git a/examples/currency/codes/go/getSupportedCodes.go b/examples/currency/codes/go/getSupportedCodes.go index 0b68b04..e48ba03 100755 --- a/examples/currency/codes/go/getSupportedCodes.go +++ b/examples/currency/codes/go/getSupportedCodes.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/currency" "os" + + "github.com/micro/services/clients/go/currency" ) // Codes returns the supported currency codes for the API diff --git a/examples/currency/convert/go/convert10UsdToGbp.go b/examples/currency/convert/go/convert10UsdToGbp.go index 35c5eea..13e0056 100755 --- a/examples/currency/convert/go/convert10UsdToGbp.go +++ b/examples/currency/convert/go/convert10UsdToGbp.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/currency" "os" + + "github.com/micro/services/clients/go/currency" ) // Convert returns the currency conversion rate between two pairs e.g USD/GBP diff --git a/examples/currency/convert/go/convertUsdToGbp.go b/examples/currency/convert/go/convertUsdToGbp.go index c5617ba..ec1a38b 100755 --- a/examples/currency/convert/go/convertUsdToGbp.go +++ b/examples/currency/convert/go/convertUsdToGbp.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/currency" "os" + + "github.com/micro/services/clients/go/currency" ) // Convert returns the currency conversion rate between two pairs e.g USD/GBP diff --git a/examples/currency/history/go/historicRatesForACurrency.go b/examples/currency/history/go/historicRatesForACurrency.go index 70c419d..58b627f 100755 --- a/examples/currency/history/go/historicRatesForACurrency.go +++ b/examples/currency/history/go/historicRatesForACurrency.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/currency" "os" + + "github.com/micro/services/clients/go/currency" ) // Returns the historic rates for a currency on a given date diff --git a/examples/currency/rates/go/getRatesForUsd.go b/examples/currency/rates/go/getRatesForUsd.go index 6692525..abeb81b 100755 --- a/examples/currency/rates/go/getRatesForUsd.go +++ b/examples/currency/rates/go/getRatesForUsd.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/currency" "os" + + "github.com/micro/services/clients/go/currency" ) // Rates returns the currency rates for a given code e.g USD diff --git a/examples/db/count/go/countEntriesInATable.go b/examples/db/count/go/countEntriesInATable.go index 99d2180..7f6db59 100755 --- a/examples/db/count/go/countEntriesInATable.go +++ b/examples/db/count/go/countEntriesInATable.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/db" "os" + + "github.com/micro/services/clients/go/db" ) // Count records in a table diff --git a/examples/db/create/go/createARecord.go b/examples/db/create/go/createARecord.go index c57135b..003184c 100755 --- a/examples/db/create/go/createARecord.go +++ b/examples/db/create/go/createARecord.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/db" "os" + + "github.com/micro/services/clients/go/db" ) // Create a record in the database. Optionally include an "id" field otherwise it's set automatically. @@ -11,10 +12,10 @@ func CreateArecord() { dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN")) rsp, err := dbService.Create(&db.CreateRequest{ Record: map[string]interface{}{ + "name": "Jane", "age": 42, "isActive": true, "id": "1", - "name": "Jane", }, Table: "users", }) diff --git a/examples/db/delete/go/deleteARecord.go b/examples/db/delete/go/deleteARecord.go index 6dee4d5..5381561 100755 --- a/examples/db/delete/go/deleteARecord.go +++ b/examples/db/delete/go/deleteARecord.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/db" "os" + + "github.com/micro/services/clients/go/db" ) // Delete a record in the database by id. diff --git a/examples/db/read/go/readRecords.go b/examples/db/read/go/readRecords.go index 6795248..662f4c2 100755 --- a/examples/db/read/go/readRecords.go +++ b/examples/db/read/go/readRecords.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/db" "os" + + "github.com/micro/services/clients/go/db" ) // Read data from a table. Lookup can be by ID or via querying any field in the record. diff --git a/examples/db/truncate/go/truncateTable.go b/examples/db/truncate/go/truncateTable.go index b179286..f62066c 100755 --- a/examples/db/truncate/go/truncateTable.go +++ b/examples/db/truncate/go/truncateTable.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/db" "os" + + "github.com/micro/services/clients/go/db" ) // Truncate the records in a table diff --git a/examples/db/update/go/updateARecord.go b/examples/db/update/go/updateARecord.go index d1cad90..4517043 100755 --- a/examples/db/update/go/updateARecord.go +++ b/examples/db/update/go/updateARecord.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/db" "os" + + "github.com/micro/services/clients/go/db" ) // Update a record in the database. Include an "id" in the record to update. diff --git a/examples/email/send/go/sendEmail.go b/examples/email/send/go/sendEmail.go index 8e20932..2ceadce 100755 --- a/examples/email/send/go/sendEmail.go +++ b/examples/email/send/go/sendEmail.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/email" "os" + + "github.com/micro/services/clients/go/email" ) // Send an email by passing in from, to, subject, and a text or html body diff --git a/examples/emoji/find/go/findEmoji.go b/examples/emoji/find/go/findEmoji.go index 250263e..12b571b 100755 --- a/examples/emoji/find/go/findEmoji.go +++ b/examples/emoji/find/go/findEmoji.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/emoji" "os" + + "github.com/micro/services/clients/go/emoji" ) // Find an emoji by its alias e.g :beer: diff --git a/examples/emoji/flag/go/getFlagByCountryCode.go b/examples/emoji/flag/go/getFlagByCountryCode.go index 21d786d..8af9e0f 100755 --- a/examples/emoji/flag/go/getFlagByCountryCode.go +++ b/examples/emoji/flag/go/getFlagByCountryCode.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/emoji" "os" + + "github.com/micro/services/clients/go/emoji" ) // Get the flag for a country. Requires country code e.g GB for great britain diff --git a/examples/emoji/print/go/printTextIncludingEmoji.go b/examples/emoji/print/go/printTextIncludingEmoji.go index b88bfab..3e6965f 100755 --- a/examples/emoji/print/go/printTextIncludingEmoji.go +++ b/examples/emoji/print/go/printTextIncludingEmoji.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/emoji" "os" + + "github.com/micro/services/clients/go/emoji" ) // Print text and renders the emojis with aliases e.g diff --git a/examples/emoji/send/go/sendATextContainingAnEmojiToAnyoneViaSms.go b/examples/emoji/send/go/sendATextContainingAnEmojiToAnyoneViaSms.go index d49af6f..cbe73fe 100755 --- a/examples/emoji/send/go/sendATextContainingAnEmojiToAnyoneViaSms.go +++ b/examples/emoji/send/go/sendATextContainingAnEmojiToAnyoneViaSms.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/emoji" "os" + + "github.com/micro/services/clients/go/emoji" ) // Send an emoji to anyone via SMS. Messages are sent in the form ' Sent from ' diff --git a/examples/evchargers/referenceData/go/getReferenceData.go b/examples/evchargers/referenceData/go/getReferenceData.go index 794f6ac..9bf2c52 100755 --- a/examples/evchargers/referenceData/go/getReferenceData.go +++ b/examples/evchargers/referenceData/go/getReferenceData.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/evchargers" "os" + + "github.com/micro/services/clients/go/evchargers" ) // Retrieve reference data as used by this API and in conjunction with the Search endpoint diff --git a/examples/evchargers/search/go/searchByBoundingBox.go b/examples/evchargers/search/go/searchByBoundingBox.go index fcb28b8..2c3ee75 100755 --- a/examples/evchargers/search/go/searchByBoundingBox.go +++ b/examples/evchargers/search/go/searchByBoundingBox.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/evchargers" "os" + + "github.com/micro/services/clients/go/evchargers" ) // Search by giving a coordinate and a max distance, or bounding box and optional filters diff --git a/examples/evchargers/search/go/searchByLocation.go b/examples/evchargers/search/go/searchByLocation.go index 73b0f72..331c3bb 100755 --- a/examples/evchargers/search/go/searchByLocation.go +++ b/examples/evchargers/search/go/searchByLocation.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/evchargers" "os" + + "github.com/micro/services/clients/go/evchargers" ) // Search by giving a coordinate and a max distance, or bounding box and optional filters diff --git a/examples/evchargers/search/go/searchWithFiltersFastChargersOnly.go b/examples/evchargers/search/go/searchWithFiltersFastChargersOnly.go index e35574a..12d24a5 100755 --- a/examples/evchargers/search/go/searchWithFiltersFastChargersOnly.go +++ b/examples/evchargers/search/go/searchWithFiltersFastChargersOnly.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/evchargers" "os" + + "github.com/micro/services/clients/go/evchargers" ) // Search by giving a coordinate and a max distance, or bounding box and optional filters diff --git a/examples/file/delete/go/deleteFile.go b/examples/file/delete/go/deleteFile.go index f9e5268..3200854 100755 --- a/examples/file/delete/go/deleteFile.go +++ b/examples/file/delete/go/deleteFile.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/file" "os" + + "github.com/micro/services/clients/go/file" ) // Delete a file by project name/path diff --git a/examples/file/list/go/listFiles.go b/examples/file/list/go/listFiles.go index f19e558..1b2f768 100755 --- a/examples/file/list/go/listFiles.go +++ b/examples/file/list/go/listFiles.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/file" "os" + + "github.com/micro/services/clients/go/file" ) // List files by their project and optionally a path. diff --git a/examples/file/read/go/readFile.go b/examples/file/read/go/readFile.go index d975d07..0631caf 100755 --- a/examples/file/read/go/readFile.go +++ b/examples/file/read/go/readFile.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/file" "os" + + "github.com/micro/services/clients/go/file" ) // Read a file by path diff --git a/examples/file/save/go/saveFile.go b/examples/file/save/go/saveFile.go index 70b69b5..4f9d094 100755 --- a/examples/file/save/go/saveFile.go +++ b/examples/file/save/go/saveFile.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/file" "os" + + "github.com/micro/services/clients/go/file" ) // Save a file diff --git a/examples/forex/history/go/getPreviousClose.go b/examples/forex/history/go/getPreviousClose.go index 8ce980b..b2bb27d 100755 --- a/examples/forex/history/go/getPreviousClose.go +++ b/examples/forex/history/go/getPreviousClose.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/forex" "os" + + "github.com/micro/services/clients/go/forex" ) // Returns the data for the previous close diff --git a/examples/forex/price/go/getAnFxPrice.go b/examples/forex/price/go/getAnFxPrice.go index 2f2be42..465b5be 100755 --- a/examples/forex/price/go/getAnFxPrice.go +++ b/examples/forex/price/go/getAnFxPrice.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/forex" "os" + + "github.com/micro/services/clients/go/forex" ) // Get the latest price for a given forex ticker diff --git a/examples/forex/quote/go/getAFxQuote.go b/examples/forex/quote/go/getAFxQuote.go index d2b6b80..cb14dc1 100755 --- a/examples/forex/quote/go/getAFxQuote.go +++ b/examples/forex/quote/go/getAFxQuote.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/forex" "os" + + "github.com/micro/services/clients/go/forex" ) // Get the latest quote for the forex diff --git a/examples/function/call/go/callAFunction.go b/examples/function/call/go/callAFunction.go index f996b88..9ffc1ce 100755 --- a/examples/function/call/go/callAFunction.go +++ b/examples/function/call/go/callAFunction.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/function" "os" + + "github.com/micro/services/clients/go/function" ) // Call a function by name diff --git a/examples/function/delete/go/deleteAFunction.go b/examples/function/delete/go/deleteAFunction.go index e5ee718..a206aa1 100755 --- a/examples/function/delete/go/deleteAFunction.go +++ b/examples/function/delete/go/deleteAFunction.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/function" "os" + + "github.com/micro/services/clients/go/function" ) // Delete a function by name diff --git a/examples/function/deploy/go/deployAFunction.go b/examples/function/deploy/go/deployAFunction.go index bfbc6a4..4c10440 100755 --- a/examples/function/deploy/go/deployAFunction.go +++ b/examples/function/deploy/go/deployAFunction.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/function" "os" + + "github.com/micro/services/clients/go/function" ) // Deploy a group of functions diff --git a/examples/function/describe/go/describeFunctionStatus.go b/examples/function/describe/go/describeFunctionStatus.go index e60cc83..403768b 100755 --- a/examples/function/describe/go/describeFunctionStatus.go +++ b/examples/function/describe/go/describeFunctionStatus.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/function" "os" + + "github.com/micro/services/clients/go/function" ) // diff --git a/examples/function/list/go/listFunctions.go b/examples/function/list/go/listFunctions.go index 7e12727..02a67df 100755 --- a/examples/function/list/go/listFunctions.go +++ b/examples/function/list/go/listFunctions.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/function" "os" + + "github.com/micro/services/clients/go/function" ) // List all the deployed functions diff --git a/examples/geocoding/lookup/go/geocodeAnAddress.go b/examples/geocoding/lookup/go/geocodeAnAddress.go index cf7610d..c38da13 100755 --- a/examples/geocoding/lookup/go/geocodeAnAddress.go +++ b/examples/geocoding/lookup/go/geocodeAnAddress.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/geocoding" "os" + + "github.com/micro/services/clients/go/geocoding" ) // Lookup returns a geocoded address including normalized address and gps coordinates. All fields are optional, provide more to get more accurate results diff --git a/examples/geocoding/reverse/go/reverseGeocodeLocation.go b/examples/geocoding/reverse/go/reverseGeocodeLocation.go index fa17d2e..35e9247 100755 --- a/examples/geocoding/reverse/go/reverseGeocodeLocation.go +++ b/examples/geocoding/reverse/go/reverseGeocodeLocation.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/geocoding" "os" + + "github.com/micro/services/clients/go/geocoding" ) // Reverse lookup an address from gps coordinates diff --git a/examples/helloworld/call/go/callTheHelloworldService.go b/examples/helloworld/call/go/callTheHelloworldService.go index 8105a1b..8c1bb22 100755 --- a/examples/helloworld/call/go/callTheHelloworldService.go +++ b/examples/helloworld/call/go/callTheHelloworldService.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/helloworld" "os" + + "github.com/micro/services/clients/go/helloworld" ) // Call returns a personalised "Hello $name" response diff --git a/examples/helloworld/stream/go/streamsAreCurrentlyTemporarilyNotSupportedInClients.go b/examples/helloworld/stream/go/streamsAreCurrentlyTemporarilyNotSupportedInClients.go index 62541f5..93feea9 100755 --- a/examples/helloworld/stream/go/streamsAreCurrentlyTemporarilyNotSupportedInClients.go +++ b/examples/helloworld/stream/go/streamsAreCurrentlyTemporarilyNotSupportedInClients.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/helloworld" "os" + + "github.com/micro/services/clients/go/helloworld" ) // Stream returns a stream of "Hello $name" responses diff --git a/examples/holidays/countries/go/listCountries.go b/examples/holidays/countries/go/listCountries.go index 33ba4b1..d2e1f98 100755 --- a/examples/holidays/countries/go/listCountries.go +++ b/examples/holidays/countries/go/listCountries.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/holidays" "os" + + "github.com/micro/services/clients/go/holidays" ) // Get the list of countries that are supported by this API diff --git a/examples/holidays/list/go/getHolidays.go b/examples/holidays/list/go/getHolidays.go index f35258d..53e8888 100755 --- a/examples/holidays/list/go/getHolidays.go +++ b/examples/holidays/list/go/getHolidays.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/holidays" "os" + + "github.com/micro/services/clients/go/holidays" ) // List the holiday dates for a given country and year diff --git a/examples/id/generate/go/generateABigflakeId.go b/examples/id/generate/go/generateABigflakeId.go index b571ffb..fe1818b 100755 --- a/examples/id/generate/go/generateABigflakeId.go +++ b/examples/id/generate/go/generateABigflakeId.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/id" "os" + + "github.com/micro/services/clients/go/id" ) // Generate a unique ID. Defaults to uuid. diff --git a/examples/id/generate/go/generateAShortId.go b/examples/id/generate/go/generateAShortId.go index f2df0a1..1e77e4d 100755 --- a/examples/id/generate/go/generateAShortId.go +++ b/examples/id/generate/go/generateAShortId.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/id" "os" + + "github.com/micro/services/clients/go/id" ) // Generate a unique ID. Defaults to uuid. diff --git a/examples/id/generate/go/generateASnowflakeId.go b/examples/id/generate/go/generateASnowflakeId.go index f53c42b..bcc89ca 100755 --- a/examples/id/generate/go/generateASnowflakeId.go +++ b/examples/id/generate/go/generateASnowflakeId.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/id" "os" + + "github.com/micro/services/clients/go/id" ) // Generate a unique ID. Defaults to uuid. diff --git a/examples/id/generate/go/generateAUniqueId.go b/examples/id/generate/go/generateAUniqueId.go index da40eb6..c61e1e7 100755 --- a/examples/id/generate/go/generateAUniqueId.go +++ b/examples/id/generate/go/generateAUniqueId.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/id" "os" + + "github.com/micro/services/clients/go/id" ) // Generate a unique ID. Defaults to uuid. diff --git a/examples/id/types/go/listTheTypesOfIdsAvailable.go b/examples/id/types/go/listTheTypesOfIdsAvailable.go index 293ae98..c0c9ea8 100755 --- a/examples/id/types/go/listTheTypesOfIdsAvailable.go +++ b/examples/id/types/go/listTheTypesOfIdsAvailable.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/id" "os" + + "github.com/micro/services/clients/go/id" ) // List the types of IDs available. No query params needed. diff --git a/examples/image/convert/go/convertAPngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.go b/examples/image/convert/go/convertAPngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.go index 2e396f3..b501011 100755 --- a/examples/image/convert/go/convertAPngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.go +++ b/examples/image/convert/go/convertAPngImageToAJpegTakenFromAUrlAndSavedToAUrlOnMicrosCdn.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/image" "os" + + "github.com/micro/services/clients/go/image" ) // Convert an image from one format (jpeg, png etc.) to an other either on the fly (from base64 to base64), diff --git a/examples/image/resize/go/base64ToBase64Image.go b/examples/image/resize/go/base64ToBase64Image.go index d81c03b..c39dcc0 100755 --- a/examples/image/resize/go/base64ToBase64Image.go +++ b/examples/image/resize/go/base64ToBase64Image.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/image" "os" + + "github.com/micro/services/clients/go/image" ) // Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters. diff --git a/examples/image/resize/go/base64ToBase64ImageWithCropping.go b/examples/image/resize/go/base64ToBase64ImageWithCropping.go index 187ca54..9b8669c 100755 --- a/examples/image/resize/go/base64ToBase64ImageWithCropping.go +++ b/examples/image/resize/go/base64ToBase64ImageWithCropping.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/image" "os" + + "github.com/micro/services/clients/go/image" ) // Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters. diff --git a/examples/image/resize/go/base64ToHostedImage.go b/examples/image/resize/go/base64ToHostedImage.go index 067d6e2..f3a194c 100755 --- a/examples/image/resize/go/base64ToHostedImage.go +++ b/examples/image/resize/go/base64ToHostedImage.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/image" "os" + + "github.com/micro/services/clients/go/image" ) // Resize an image on the fly without storing it (by sending and receiving a base64 encoded image), or resize and upload depending on parameters. diff --git a/examples/image/upload/go/uploadABase64ImageToMicrosCdn.go b/examples/image/upload/go/uploadABase64ImageToMicrosCdn.go index 3d81a5b..669262a 100755 --- a/examples/image/upload/go/uploadABase64ImageToMicrosCdn.go +++ b/examples/image/upload/go/uploadABase64ImageToMicrosCdn.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/image" "os" + + "github.com/micro/services/clients/go/image" ) // Upload an image by either sending a base64 encoded image to this endpoint or a URL. diff --git a/examples/image/upload/go/uploadAnImageFromAUrlToMicrosCdn.go b/examples/image/upload/go/uploadAnImageFromAUrlToMicrosCdn.go index e05e477..8a8e75d 100755 --- a/examples/image/upload/go/uploadAnImageFromAUrlToMicrosCdn.go +++ b/examples/image/upload/go/uploadAnImageFromAUrlToMicrosCdn.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/image" "os" + + "github.com/micro/services/clients/go/image" ) // Upload an image by either sending a base64 encoded image to this endpoint or a URL. diff --git a/examples/ip/lookup/go/lookupIpInfo.go b/examples/ip/lookup/go/lookupIpInfo.go index 9ebaa3c..0203092 100755 --- a/examples/ip/lookup/go/lookupIpInfo.go +++ b/examples/ip/lookup/go/lookupIpInfo.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/ip" "os" + + "github.com/micro/services/clients/go/ip" ) // Lookup the geolocation information for an IP address diff --git a/examples/location/read/go/getLocationById.go b/examples/location/read/go/getLocationById.go index ed26378..0ee37c3 100755 --- a/examples/location/read/go/getLocationById.go +++ b/examples/location/read/go/getLocationById.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/location" "os" + + "github.com/micro/services/clients/go/location" ) // Read an entity by its ID diff --git a/examples/location/save/go/saveAnEntity.go b/examples/location/save/go/saveAnEntity.go index 508c903..fecdafe 100755 --- a/examples/location/save/go/saveAnEntity.go +++ b/examples/location/save/go/saveAnEntity.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/location" "os" + + "github.com/micro/services/clients/go/location" ) // Save an entity's current position diff --git a/examples/location/search/go/searchForLocations.go b/examples/location/search/go/searchForLocations.go index 9cb4063..b953e5a 100755 --- a/examples/location/search/go/searchForLocations.go +++ b/examples/location/search/go/searchForLocations.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/location" "os" + + "github.com/micro/services/clients/go/location" ) // Search for entities in a given radius diff --git a/examples/notes/create/go/createANote.go b/examples/notes/create/go/createANote.go index 12b7029..e988dfc 100755 --- a/examples/notes/create/go/createANote.go +++ b/examples/notes/create/go/createANote.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/notes" "os" + + "github.com/micro/services/clients/go/notes" ) // Create a new note diff --git a/examples/notes/delete/go/deleteANote.go b/examples/notes/delete/go/deleteANote.go index bc55661..6ee26fc 100755 --- a/examples/notes/delete/go/deleteANote.go +++ b/examples/notes/delete/go/deleteANote.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/notes" "os" + + "github.com/micro/services/clients/go/notes" ) // Delete a note diff --git a/examples/notes/list/go/listAllNotes.go b/examples/notes/list/go/listAllNotes.go index ef259d2..ced2055 100755 --- a/examples/notes/list/go/listAllNotes.go +++ b/examples/notes/list/go/listAllNotes.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/notes" "os" + + "github.com/micro/services/clients/go/notes" ) // List all the notes diff --git a/examples/notes/read/go/readANote.go b/examples/notes/read/go/readANote.go index c0af61d..5518d2e 100755 --- a/examples/notes/read/go/readANote.go +++ b/examples/notes/read/go/readANote.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/notes" "os" + + "github.com/micro/services/clients/go/notes" ) // Read a note diff --git a/examples/notes/update/go/updateANote.go b/examples/notes/update/go/updateANote.go index 1341884..1976ae9 100755 --- a/examples/notes/update/go/updateANote.go +++ b/examples/notes/update/go/updateANote.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/notes" "os" + + "github.com/micro/services/clients/go/notes" ) // Update a note diff --git a/examples/otp/generate/go/generateOtp.go b/examples/otp/generate/go/generateOtp.go index 6b4d1d9..41a91c4 100755 --- a/examples/otp/generate/go/generateOtp.go +++ b/examples/otp/generate/go/generateOtp.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/otp" "os" + + "github.com/micro/services/clients/go/otp" ) // Generate an OTP (one time pass) code diff --git a/examples/otp/validate/go/validateOtp.go b/examples/otp/validate/go/validateOtp.go index cda57d9..42b622b 100755 --- a/examples/otp/validate/go/validateOtp.go +++ b/examples/otp/validate/go/validateOtp.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/otp" "os" + + "github.com/micro/services/clients/go/otp" ) // Validate the OTP code diff --git a/examples/postcode/lookup/go/lookupPostcode.go b/examples/postcode/lookup/go/lookupPostcode.go index 029b5fc..063e501 100755 --- a/examples/postcode/lookup/go/lookupPostcode.go +++ b/examples/postcode/lookup/go/lookupPostcode.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/postcode" "os" + + "github.com/micro/services/clients/go/postcode" ) // Lookup a postcode to retrieve the related region, county, etc diff --git a/examples/postcode/random/go/returnARandomPostcodeAndItsInformation.go b/examples/postcode/random/go/returnARandomPostcodeAndItsInformation.go index 0a15f99..429ac92 100755 --- a/examples/postcode/random/go/returnARandomPostcodeAndItsInformation.go +++ b/examples/postcode/random/go/returnARandomPostcodeAndItsInformation.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/postcode" "os" + + "github.com/micro/services/clients/go/postcode" ) // Return a random postcode and its related info diff --git a/examples/postcode/validate/go/returnARandomPostcodeAndItsInformation.go b/examples/postcode/validate/go/returnARandomPostcodeAndItsInformation.go index 3c59dab..5adec45 100755 --- a/examples/postcode/validate/go/returnARandomPostcodeAndItsInformation.go +++ b/examples/postcode/validate/go/returnARandomPostcodeAndItsInformation.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/postcode" "os" + + "github.com/micro/services/clients/go/postcode" ) // Validate a postcode. diff --git a/examples/prayer/times/go/prayerTimes.go b/examples/prayer/times/go/prayerTimes.go index eaa4f58..46b5bcb 100755 --- a/examples/prayer/times/go/prayerTimes.go +++ b/examples/prayer/times/go/prayerTimes.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/prayer" "os" + + "github.com/micro/services/clients/go/prayer" ) // Get the prayer (salah) times for a location on a given date diff --git a/examples/qr/generate/go/generateAQrCode.go b/examples/qr/generate/go/generateAQrCode.go index 0c9a16e..bde0d8c 100755 --- a/examples/qr/generate/go/generateAQrCode.go +++ b/examples/qr/generate/go/generateAQrCode.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/qr" "os" + + "github.com/micro/services/clients/go/qr" ) // Generate a QR code with a specific text and size diff --git a/examples/quran/chapters/go/listChapters.go b/examples/quran/chapters/go/listChapters.go index 5a9b74b..5c8836a 100755 --- a/examples/quran/chapters/go/listChapters.go +++ b/examples/quran/chapters/go/listChapters.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/quran" "os" + + "github.com/micro/services/clients/go/quran" ) // List the Chapters (surahs) of the Quran diff --git a/examples/quran/search/go/searchTheQuran.go b/examples/quran/search/go/searchTheQuran.go index 03970b5..e1c3568 100755 --- a/examples/quran/search/go/searchTheQuran.go +++ b/examples/quran/search/go/searchTheQuran.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/quran" "os" + + "github.com/micro/services/clients/go/quran" ) // Search the Quran for any form of query or questions diff --git a/examples/quran/summary/go/getChapterSummary.go b/examples/quran/summary/go/getChapterSummary.go index cc6111a..e2e9ee8 100755 --- a/examples/quran/summary/go/getChapterSummary.go +++ b/examples/quran/summary/go/getChapterSummary.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/quran" "os" + + "github.com/micro/services/clients/go/quran" ) // Get a summary for a given chapter (surah) diff --git a/examples/quran/verses/go/getVersesOfAChapter.go b/examples/quran/verses/go/getVersesOfAChapter.go index 28b25c6..b4444f9 100755 --- a/examples/quran/verses/go/getVersesOfAChapter.go +++ b/examples/quran/verses/go/getVersesOfAChapter.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/quran" "os" + + "github.com/micro/services/clients/go/quran" ) // Lookup the verses (ayahs) for a chapter including diff --git a/examples/routing/directions/go/turnByTurnDirections.go b/examples/routing/directions/go/turnByTurnDirections.go index 8b19a96..b7ff0d2 100755 --- a/examples/routing/directions/go/turnByTurnDirections.go +++ b/examples/routing/directions/go/turnByTurnDirections.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/routing" "os" + + "github.com/micro/services/clients/go/routing" ) // Turn by turn directions from a start point to an end point including maneuvers and bearings diff --git a/examples/routing/eta/go/etaFromPointAToPointB.go b/examples/routing/eta/go/etaFromPointAToPointB.go index 183f639..b5e5caf 100755 --- a/examples/routing/eta/go/etaFromPointAToPointB.go +++ b/examples/routing/eta/go/etaFromPointAToPointB.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/routing" "os" + + "github.com/micro/services/clients/go/routing" ) // Get the eta for a route from origin to destination. The eta is an estimated time based on car routes diff --git a/examples/routing/route/go/gpsPointsForARoute.go b/examples/routing/route/go/gpsPointsForARoute.go index 63008ed..6f85c6a 100755 --- a/examples/routing/route/go/gpsPointsForARoute.go +++ b/examples/routing/route/go/gpsPointsForARoute.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/routing" "os" + + "github.com/micro/services/clients/go/routing" ) // Retrieve a route as a simple list of gps points along with total distance and estimated duration diff --git a/examples/rss/add/go/addANewFeed.go b/examples/rss/add/go/addANewFeed.go index 45746aa..5e75f50 100755 --- a/examples/rss/add/go/addANewFeed.go +++ b/examples/rss/add/go/addANewFeed.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/rss" "os" + + "github.com/micro/services/clients/go/rss" ) // Add a new RSS feed with a name, url, and category diff --git a/examples/rss/feed/go/readAFeed.go b/examples/rss/feed/go/readAFeed.go index 4b7efd6..c736c9b 100755 --- a/examples/rss/feed/go/readAFeed.go +++ b/examples/rss/feed/go/readAFeed.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/rss" "os" + + "github.com/micro/services/clients/go/rss" ) // Get an RSS feed by name. If no name is given, all feeds are returned. Default limit is 25 entries. diff --git a/examples/rss/list/go/listRssFeeds.go b/examples/rss/list/go/listRssFeeds.go index 9a97a7d..ca1dfe4 100755 --- a/examples/rss/list/go/listRssFeeds.go +++ b/examples/rss/list/go/listRssFeeds.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/rss" "os" + + "github.com/micro/services/clients/go/rss" ) // List the saved RSS fields diff --git a/examples/rss/remove/go/removeAFeed.go b/examples/rss/remove/go/removeAFeed.go index 09e3137..ff5f104 100755 --- a/examples/rss/remove/go/removeAFeed.go +++ b/examples/rss/remove/go/removeAFeed.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/rss" "os" + + "github.com/micro/services/clients/go/rss" ) // Remove an RSS feed by name diff --git a/examples/sentiment/analyze/go/analyzeAPieceOfText.go b/examples/sentiment/analyze/go/analyzeAPieceOfText.go index 8d5f704..d97794a 100755 --- a/examples/sentiment/analyze/go/analyzeAPieceOfText.go +++ b/examples/sentiment/analyze/go/analyzeAPieceOfText.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/sentiment" "os" + + "github.com/micro/services/clients/go/sentiment" ) // Analyze and score a piece of text diff --git a/examples/sms/send/go/sendSms.go b/examples/sms/send/go/sendSms.go index 4c5322f..e79eeec 100755 --- a/examples/sms/send/go/sendSms.go +++ b/examples/sms/send/go/sendSms.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/sms" "os" + + "github.com/micro/services/clients/go/sms" ) // Send an SMS. diff --git a/examples/stock/history/go/getHistoricData.go b/examples/stock/history/go/getHistoricData.go index 12027ed..a67b03c 100755 --- a/examples/stock/history/go/getHistoricData.go +++ b/examples/stock/history/go/getHistoricData.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/stock" "os" + + "github.com/micro/services/clients/go/stock" ) // Get the historic open-close for a given day diff --git a/examples/stock/orderBook/go/orderBookHistory.go b/examples/stock/orderBook/go/orderBookHistory.go index a59897f..a7ef6ff 100755 --- a/examples/stock/orderBook/go/orderBookHistory.go +++ b/examples/stock/orderBook/go/orderBookHistory.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/stock" "os" + + "github.com/micro/services/clients/go/stock" ) // Get the historic order book and each trade by timestamp diff --git a/examples/stock/price/go/getAStockPrice.go b/examples/stock/price/go/getAStockPrice.go index ae055c7..620f93f 100755 --- a/examples/stock/price/go/getAStockPrice.go +++ b/examples/stock/price/go/getAStockPrice.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/stock" "os" + + "github.com/micro/services/clients/go/stock" ) // Get the last price for a given stock ticker diff --git a/examples/stock/quote/go/getAStockQuote.go b/examples/stock/quote/go/getAStockQuote.go index d6fbbda..8b5a3f1 100755 --- a/examples/stock/quote/go/getAStockQuote.go +++ b/examples/stock/quote/go/getAStockQuote.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/stock" "os" + + "github.com/micro/services/clients/go/stock" ) // Get the last quote for the stock diff --git a/examples/stream/publish/go/publishAMessage.go b/examples/stream/publish/go/publishAMessage.go index f7db1b0..eee4024 100755 --- a/examples/stream/publish/go/publishAMessage.go +++ b/examples/stream/publish/go/publishAMessage.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/stream" "os" + + "github.com/micro/services/clients/go/stream" ) // Publish a message to the stream. Specify a topic to group messages for a specific topic. @@ -11,9 +12,9 @@ func PublishAmessage() { streamService := stream.NewStreamService(os.Getenv("MICRO_API_TOKEN")) rsp, err := streamService.Publish(&stream.PublishRequest{ Message: map[string]interface{}{ + "id": "1", "type": "signup", "user": "john", - "id": "1", }, Topic: "events", }) diff --git a/examples/stream/subscribe/go/subscribeToATopic.go b/examples/stream/subscribe/go/subscribeToATopic.go index 7c60de4..ce513fa 100755 --- a/examples/stream/subscribe/go/subscribeToATopic.go +++ b/examples/stream/subscribe/go/subscribeToATopic.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/stream" "os" + + "github.com/micro/services/clients/go/stream" ) // Subscribe to messages for a given topic. diff --git a/examples/sunnah/books/go/getTheBooksWithinACollection.go b/examples/sunnah/books/go/getTheBooksWithinACollection.go index bba2514..2b11fca 100755 --- a/examples/sunnah/books/go/getTheBooksWithinACollection.go +++ b/examples/sunnah/books/go/getTheBooksWithinACollection.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/sunnah" "os" + + "github.com/micro/services/clients/go/sunnah" ) // Get a list of books from within a collection. A book can contain many chapters diff --git a/examples/sunnah/chapters/go/listTheChaptersInABook.go b/examples/sunnah/chapters/go/listTheChaptersInABook.go index 18f78f1..56a1f26 100755 --- a/examples/sunnah/chapters/go/listTheChaptersInABook.go +++ b/examples/sunnah/chapters/go/listTheChaptersInABook.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/sunnah" "os" + + "github.com/micro/services/clients/go/sunnah" ) // Get all the chapters of a given book within a collection. diff --git a/examples/sunnah/collections/go/listAvailableCollections.go b/examples/sunnah/collections/go/listAvailableCollections.go index 5469cfe..9f294e7 100755 --- a/examples/sunnah/collections/go/listAvailableCollections.go +++ b/examples/sunnah/collections/go/listAvailableCollections.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/sunnah" "os" + + "github.com/micro/services/clients/go/sunnah" ) // Get a list of available collections. A collection is diff --git a/examples/sunnah/hadiths/go/listTheHadithsInABook.go b/examples/sunnah/hadiths/go/listTheHadithsInABook.go index 50f0f22..80a7456 100755 --- a/examples/sunnah/hadiths/go/listTheHadithsInABook.go +++ b/examples/sunnah/hadiths/go/listTheHadithsInABook.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/sunnah" "os" + + "github.com/micro/services/clients/go/sunnah" ) // Hadiths returns a list of hadiths and their corresponding text for a diff --git a/examples/thumbnail/screenshot/go/takeScreenshotOfAUrl.go b/examples/thumbnail/screenshot/go/takeScreenshotOfAUrl.go index d6a63b7..dc6df09 100755 --- a/examples/thumbnail/screenshot/go/takeScreenshotOfAUrl.go +++ b/examples/thumbnail/screenshot/go/takeScreenshotOfAUrl.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/thumbnail" "os" + + "github.com/micro/services/clients/go/thumbnail" ) // Create a thumbnail screenshot by passing in a url, height and width diff --git a/examples/time/now/go/returnsCurrentTimeOptionallyWithLocation.go b/examples/time/now/go/returnsCurrentTimeOptionallyWithLocation.go index 6fb33a9..1a7d0ab 100755 --- a/examples/time/now/go/returnsCurrentTimeOptionallyWithLocation.go +++ b/examples/time/now/go/returnsCurrentTimeOptionallyWithLocation.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/time" "os" + + "github.com/micro/services/clients/go/time" ) // Get the current time diff --git a/examples/time/zone/go/getTheTimezoneInfoForASpecificLocation.go b/examples/time/zone/go/getTheTimezoneInfoForASpecificLocation.go index c98a6a0..b3759b1 100755 --- a/examples/time/zone/go/getTheTimezoneInfoForASpecificLocation.go +++ b/examples/time/zone/go/getTheTimezoneInfoForASpecificLocation.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/time" "os" + + "github.com/micro/services/clients/go/time" ) // Get the timezone info for a specific location diff --git a/examples/twitter/search/go/searchForTweets.go b/examples/twitter/search/go/searchForTweets.go index a53063c..eab16b2 100755 --- a/examples/twitter/search/go/searchForTweets.go +++ b/examples/twitter/search/go/searchForTweets.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/twitter" "os" + + "github.com/micro/services/clients/go/twitter" ) // Search for tweets with a simple query diff --git a/examples/twitter/timeline/go/getATwitterTimeline.go b/examples/twitter/timeline/go/getATwitterTimeline.go index 72ecdef..cae4794 100755 --- a/examples/twitter/timeline/go/getATwitterTimeline.go +++ b/examples/twitter/timeline/go/getATwitterTimeline.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/twitter" "os" + + "github.com/micro/services/clients/go/twitter" ) // Get the timeline for a given user diff --git a/examples/twitter/trends/go/getTheCurrentGlobalTrendingTopics.go b/examples/twitter/trends/go/getTheCurrentGlobalTrendingTopics.go index f291576..6dead90 100755 --- a/examples/twitter/trends/go/getTheCurrentGlobalTrendingTopics.go +++ b/examples/twitter/trends/go/getTheCurrentGlobalTrendingTopics.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/twitter" "os" + + "github.com/micro/services/clients/go/twitter" ) // Get the current global trending topics diff --git a/examples/twitter/user/go/getAUsersTwitterProfile.go b/examples/twitter/user/go/getAUsersTwitterProfile.go index 68e8f13..d8b1eda 100755 --- a/examples/twitter/user/go/getAUsersTwitterProfile.go +++ b/examples/twitter/user/go/getAUsersTwitterProfile.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/twitter" "os" + + "github.com/micro/services/clients/go/twitter" ) // Get a user's twitter profile diff --git a/examples/url/list/go/listYourShortenedUrls.go b/examples/url/list/go/listYourShortenedUrls.go index ae51144..505c777 100755 --- a/examples/url/list/go/listYourShortenedUrls.go +++ b/examples/url/list/go/listYourShortenedUrls.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/url" "os" + + "github.com/micro/services/clients/go/url" ) // List information on all the shortened URLs that you have created diff --git a/examples/url/proxy/go/resolveAShortUrlToALongDestinationUrl.go b/examples/url/proxy/go/resolveAShortUrlToALongDestinationUrl.go index f176a53..6aafca9 100755 --- a/examples/url/proxy/go/resolveAShortUrlToALongDestinationUrl.go +++ b/examples/url/proxy/go/resolveAShortUrlToALongDestinationUrl.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/url" "os" + + "github.com/micro/services/clients/go/url" ) // Proxy returns the destination URL of a short URL. diff --git a/examples/url/shorten/go/shortenALongUrl.go b/examples/url/shorten/go/shortenALongUrl.go index 4490097..081153e 100755 --- a/examples/url/shorten/go/shortenALongUrl.go +++ b/examples/url/shorten/go/shortenALongUrl.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/url" "os" + + "github.com/micro/services/clients/go/url" ) // Shortens a destination URL and returns a full short URL. diff --git a/examples/user/create/go/createAnAccount.go b/examples/user/create/go/createAnAccount.go index 6cd5e1f..b9920d6 100755 --- a/examples/user/create/go/createAnAccount.go +++ b/examples/user/create/go/createAnAccount.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/user" "os" + + "github.com/micro/services/clients/go/user" ) // Create a new user account. The email address and username for the account must be unique. diff --git a/examples/user/delete/go/deleteUserAccount.go b/examples/user/delete/go/deleteUserAccount.go index 05995b4..379ba7e 100755 --- a/examples/user/delete/go/deleteUserAccount.go +++ b/examples/user/delete/go/deleteUserAccount.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/user" "os" + + "github.com/micro/services/clients/go/user" ) // Delete an account by id diff --git a/examples/user/login/go/logAUserIn.go b/examples/user/login/go/logAUserIn.go index a300581..4a84033 100755 --- a/examples/user/login/go/logAUserIn.go +++ b/examples/user/login/go/logAUserIn.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/user" "os" + + "github.com/micro/services/clients/go/user" ) // Login using username or email. The response will return a new session for successful login, diff --git a/examples/user/logout/go/logAUserOut.go b/examples/user/logout/go/logAUserOut.go index a7660ad..c125c79 100755 --- a/examples/user/logout/go/logAUserOut.go +++ b/examples/user/logout/go/logAUserOut.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/user" "os" + + "github.com/micro/services/clients/go/user" ) // Logout a user account diff --git a/examples/user/read/go/readAccountByEmail.go b/examples/user/read/go/readAccountByEmail.go index de82ebb..fc7a3cf 100755 --- a/examples/user/read/go/readAccountByEmail.go +++ b/examples/user/read/go/readAccountByEmail.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/user" "os" + + "github.com/micro/services/clients/go/user" ) // Read an account by id, username or email. Only one need to be specified. diff --git a/examples/user/read/go/readAccountByUsernameOrEmail.go b/examples/user/read/go/readAccountByUsernameOrEmail.go index 56f0ea7..ab7b96e 100755 --- a/examples/user/read/go/readAccountByUsernameOrEmail.go +++ b/examples/user/read/go/readAccountByUsernameOrEmail.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/user" "os" + + "github.com/micro/services/clients/go/user" ) // Read an account by id, username or email. Only one need to be specified. diff --git a/examples/user/read/go/readAnAccountById.go b/examples/user/read/go/readAnAccountById.go index aa47405..325dcba 100755 --- a/examples/user/read/go/readAnAccountById.go +++ b/examples/user/read/go/readAnAccountById.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/user" "os" + + "github.com/micro/services/clients/go/user" ) // Read an account by id, username or email. Only one need to be specified. diff --git a/examples/user/readSession/go/readASessionByTheSessionId.go b/examples/user/readSession/go/readASessionByTheSessionId.go index ef025c6..0882fdb 100755 --- a/examples/user/readSession/go/readASessionByTheSessionId.go +++ b/examples/user/readSession/go/readASessionByTheSessionId.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/user" "os" + + "github.com/micro/services/clients/go/user" ) // Read a session by the session id. In the event it has expired or is not found and error is returned. diff --git a/examples/user/sendVerificationEmail/go/sendVerificationEmail.go b/examples/user/sendVerificationEmail/go/sendVerificationEmail.go index 5db14f2..e641773 100755 --- a/examples/user/sendVerificationEmail/go/sendVerificationEmail.go +++ b/examples/user/sendVerificationEmail/go/sendVerificationEmail.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/user" "os" + + "github.com/micro/services/clients/go/user" ) // Send a verification email diff --git a/examples/user/update/go/updateAnAccount.go b/examples/user/update/go/updateAnAccount.go index 75c7740..8f895cd 100755 --- a/examples/user/update/go/updateAnAccount.go +++ b/examples/user/update/go/updateAnAccount.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/user" "os" + + "github.com/micro/services/clients/go/user" ) // Update the account username or email diff --git a/examples/user/updatePassword/go/updateTheAccountPassword.go b/examples/user/updatePassword/go/updateTheAccountPassword.go index 5259e31..a925e93 100755 --- a/examples/user/updatePassword/go/updateTheAccountPassword.go +++ b/examples/user/updatePassword/go/updateTheAccountPassword.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/user" "os" + + "github.com/micro/services/clients/go/user" ) // Update the account password diff --git a/examples/user/verifyEmail/go/verifyEmail.go b/examples/user/verifyEmail/go/verifyEmail.go index 1392016..e955dc8 100755 --- a/examples/user/verifyEmail/go/verifyEmail.go +++ b/examples/user/verifyEmail/go/verifyEmail.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/user" "os" + + "github.com/micro/services/clients/go/user" ) // Verify the email address of an account from a token sent in an email to the user. diff --git a/examples/vehicle/lookup/go/lookupVehicle.go b/examples/vehicle/lookup/go/lookupVehicle.go index 03e1c47..92ceb56 100755 --- a/examples/vehicle/lookup/go/lookupVehicle.go +++ b/examples/vehicle/lookup/go/lookupVehicle.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/vehicle" "os" + + "github.com/micro/services/clients/go/vehicle" ) // Lookup a UK vehicle by it's registration number diff --git a/examples/weather/forecast/go/forecastWeather.go b/examples/weather/forecast/go/forecastWeather.go index cb9f6de..0249ea7 100755 --- a/examples/weather/forecast/go/forecastWeather.go +++ b/examples/weather/forecast/go/forecastWeather.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/weather" "os" + + "github.com/micro/services/clients/go/weather" ) // Get the weather forecast for the next 1-10 days diff --git a/examples/weather/now/go/getCurrentWeather.go b/examples/weather/now/go/getCurrentWeather.go index b6dcea7..f91330b 100755 --- a/examples/weather/now/go/getCurrentWeather.go +++ b/examples/weather/now/go/getCurrentWeather.go @@ -2,8 +2,9 @@ package example import ( "fmt" - "github.com/micro/services/clients/go/weather" "os" + + "github.com/micro/services/clients/go/weather" ) // Get the current weather report for a location by postcode, city, zip code, ip address