GetKey returns the entry key for the current page.
(ctx *context.Context)
| 94 | |
| 95 | // GetKey returns the entry key for the current page. |
| 96 | func GetKey(ctx *context.Context) string { |
| 97 | return ctx.Values().GetString(entryKeyContextKey) |
| 98 | } |
| 99 | |
| 100 | func getOrSetKey(ctx *context.Context) string { |
| 101 | if key := GetKey(ctx); key != "" { |
no test coverage detected
searching dependent graphs…