(decl: string)
| 388 | write('auth/jwt.go', files['auth/jwt.go']!); |
| 389 | // The same lines either way: a stale reading would still see the local. |
| 390 | const use = (decl: string) => `package auth |
| 391 | |
| 392 | import "github.com/golang-jwt/jwt/v5" |
| 393 | |
| 394 | func use() { |
| 395 | ${decl} |
| 396 | jwt.assign("user") |
| 397 | } |
| 398 | `; |
| 399 | write('auth/use.go', use('jwt, _ := newTokenProviderJWT("key")')); |
| 400 | const synced = await CodeGraph.init(dir, { index: true }); |
| 401 | try { |
no outgoing calls
no test coverage detected