1
0
Fork 0
mirror of synced 2024-08-26 15:42:08 +12:00
appwrite/app/sdks/go/docs/examples/Locale/get-countries-e-u.md

35 lines
662 B
Markdown
Raw Normal View History

2019-10-19 07:42:02 +13:00
# Locale Examples
## GetCountriesEU
```go
package appwrite-getcountrieseu
import (
"fmt"
"os"
"github.com/appwrite/sdk-for-go"
)
func main() {
// Create a Client
var clt := appwrite.Client{}
// Set Client required headers
clt.SetProject("")
clt.SetKey("")
// Create a new Locale service passing Client
var srv := appwrite.Locale{
client: &clt
}
// Call GetCountriesEU method and handle results
var res, err := srv.GetCountriesEU()
if err != nil {
panic(err)
}
fmt.Println(res)
}
```