MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / use

Function use

__tests__/go-ref-qualifier.test.ts:390–398  ·  view source on GitHub ↗
(decl: string)

Source from the content-addressed store, hash-verified

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
392import "github.com/golang-jwt/jwt/v5"
393
394func 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 {

Callers 3

loadMethod · 0.50
guardNoPruneFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected