()
| 38 | } |
| 39 | |
| 40 | func ExampleNewTopic() { |
| 41 | // PRAGMA: This example is used on gocloud.dev; PRAGMA comments adjust how it is shown and can be ignored. |
| 42 | // PRAGMA: On gocloud.dev, hide lines until the next blank line. |
| 43 | ctx := context.Background() |
| 44 | |
| 45 | topic := mempubsub.NewTopic() |
| 46 | defer topic.Shutdown(ctx) |
| 47 | } |
| 48 | |
| 49 | func Example_openSubscriptionFromURL() { |
| 50 | // PRAGMA: This example is used on gocloud.dev; PRAGMA comments adjust how it is shown and can be ignored. |