|
9 | 9 | # Momento Client Library for Go |
10 | 10 |
|
11 | 11 | Momento Cache is a fast, simple, pay-as-you-go caching solution without any of the operational overhead |
12 | | -required by traditional caching solutions. This repo contains the source code for the Momento client library for Go. |
| 12 | +required by traditional caching solutions. This repo contains the source code for the Momento client library for Go. |
13 | 13 |
|
14 | 14 | To get started with Momento you will need a Momento Auth Token. You can get one from the [Momento Console](https://console.gomomento.com). |
15 | 15 |
|
16 | | -- Website: [https://www.gomomento.com/](https://www.gomomento.com/) |
17 | | -- Momento Documentation: [https://docs.momentohq.com/](https://docs.momentohq.com/) |
18 | | -- Getting Started: [https://docs.momentohq.com/getting-started](https://docs.momentohq.com/getting-started) |
19 | | -- Momento SDK Documentation for Go: [https://docs.momentohq.com/sdks/go](https://docs.momentohq.com/sdks/go) |
20 | | -- Discuss: [Momento Discord](https://discord.gg/3HkAKjUZGq) |
| 16 | +* Website: [https://www.gomomento.com/](https://www.gomomento.com/) |
| 17 | +* Momento Documentation: [https://docs.momentohq.com/](https://docs.momentohq.com/) |
| 18 | +* Getting Started: [https://docs.momentohq.com/getting-started](https://docs.momentohq.com/getting-started) |
| 19 | +* Momento SDK Documentation for Go: [https://docs.momentohq.com/sdks/go](https://docs.momentohq.com/sdks/go) |
| 20 | +* Discuss: [Momento Discord](https://discord.gg/3HkAKjUZGq) |
21 | 21 |
|
22 | 22 | ## Packages |
23 | 23 |
|
@@ -52,7 +52,7 @@ import ( |
52 | 52 | func main() { |
53 | 53 | context := context.Background() |
54 | 54 | configuration := config.LaptopLatestWithLogger(logger.NewNoopMomentoLoggerFactory()).WithClientTimeout(15 * time.Second) |
55 | | - credentialProvider, err := auth.NewEnvMomentoV2TokenProvider() |
| 55 | + credentialProvider, err := auth.NewEnvMomentoTokenProvider("MOMENTO_API_KEY") |
56 | 56 | if err != nil { |
57 | 57 | panic(err) |
58 | 58 | } |
@@ -107,6 +107,5 @@ Check out full working code in the [examples](./examples/README.md) directory of |
107 | 107 |
|
108 | 108 | If you are interested in contributing to the SDK, please see the [CONTRIBUTING](./CONTRIBUTING.md) docs. |
109 | 109 |
|
110 | | ---- |
111 | | - |
| 110 | +---------------------------------------------------------------------------------------- |
112 | 111 | For more info, visit our website at [https://gomomento.com](https://gomomento.com)! |
0 commit comments