Debian Codegraph @

examples/distribution/main.go

raw
1 package main
2
3 import (
4 "context"
5 "log"
6 "time"
7 )
8
9 func main() {
10 apiClient := newAPIClient(newDistributedStorage())
11
12 for i := 0; i < 10; i++ {
13 _, err := apiClient.GetShippingOptions(context.Background(), "1234", "asc")
14 if err != nil {
15 log.Fatal(err)
16 }
17 log.Println("The shipping options were retrieved successfully!")
18 time.Sleep(250 * time.Millisecond)
19 }
20 }