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

35 lines
642 B
Markdown
Raw Normal View History

2019-10-14 09:19:06 +13:00
# Locale Examples
## GetLocale
```go
package appwrite-getlocale
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 GetLocale method and handle results
var res, err := srv.GetLocale()
if err != nil {
panic(err)
}
fmt.Println(res)
}
```