{"modulePath":"github.com/coder/aibridge","version":"v1.1.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package utils\n\n## Functions\n\n```go\nfunc ExtractBearerToken(auth string) string\n```\nExtractBearerToken extracts the token from a \"Bearer \\\u003ctoken\u003e\" authorization header.\n\n```go\nfunc MaskSecret(s string) string\n```\nMaskSecret masks the middle of a secret string, revealing a small prefix and suffix for identification. The number of characters revealed scales with string length.\n\n```go\nfunc PtrTo[T any](v T) *T\n```\nPtrTo returns a reference to v.\n\n## Types\n\n```go\ntype ConcurrentGroup struct {\n\t// contains filtered or unexported fields\n}\n```\nConcurrentGroup is like errgroup.Group but differs in that an error in one goroutine will not interrupt the functioning of another. See [https://pkg.go.dev/golang.org/x/sync/errgroup#Group.Go](https://pkg.go.dev/golang.org/x/sync/errgroup#Group.Go).\n\n```go\nfunc NewConcurrentGroup() *ConcurrentGroup\n```\n\n```go\nfunc (c *ConcurrentGroup) Go(fn func() error)\n```\n\n```go\nfunc (c *ConcurrentGroup) Wait() error\n```\n\n","path":"github.com/coder/aibridge/utils","name":"utils","synopsis":"","isRedistributable":true}
