mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-13 19:45:26 +00:00
18 lines
329 B
Go
Executable File
18 lines
329 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/micro/services/clients/go/quran"
|
|
)
|
|
|
|
// List the Chapters (surahs) of the Quran
|
|
func ListChapters() {
|
|
quranService := quran.NewQuranService(os.Getenv("MICRO_API_TOKEN"))
|
|
rsp, err := quranService.Chapters(&quran.ChaptersRequest{
|
|
Language: "en",
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|