repo
stringlengths
6
47
file_url
stringlengths
77
269
file_path
stringlengths
5
186
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-07 08:35:43
2026-01-07 08:55:24
truncated
bool
2 classes
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/main_test.go
Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/main_test.go
package main_test import ( "fmt" "io/ioutil" "os" "path/filepath" "reflect" "runtime" "strings" "testing" "github.com/DavidHuie/httpq/Godeps/_workspace/src/github.com/boltdb/bolt" . "github.com/DavidHuie/httpq/Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt" ) // open creates and opens a Bolt databas...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/info_test.go
Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/info_test.go
package main_test import ( "testing" "github.com/DavidHuie/httpq/Godeps/_workspace/src/github.com/boltdb/bolt" . "github.com/DavidHuie/httpq/Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt" ) // Ensure that a database info can be printed. func TestInfo(t *testing.T) { SetTestMode(true) open(func(db *bolt....
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/bench.go
Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/bench.go
package main import ( "encoding/binary" "encoding/json" "errors" "fmt" "io/ioutil" "math/rand" "os" "runtime" "runtime/pprof" "time" "github.com/DavidHuie/httpq/Godeps/_workspace/src/github.com/boltdb/bolt" ) // File handlers for the various profiles. var cpuprofile, memprofile, blockprofile *os.File var...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/get_test.go
Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/get_test.go
package main_test import ( "testing" "github.com/DavidHuie/httpq/Godeps/_workspace/src/github.com/boltdb/bolt" . "github.com/DavidHuie/httpq/Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt" ) // Ensure that a value can be retrieved from the CLI. func TestGet(t *testing.T) { SetTestMode(true) open(func(db ...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/keys.go
Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/keys.go
package main import ( "os" "github.com/DavidHuie/httpq/Godeps/_workspace/src/github.com/boltdb/bolt" ) // Keys retrieves a list of keys for a given bucket. func Keys(path, name string) { if _, err := os.Stat(path); os.IsNotExist(err) { fatal(err) return } db, err := bolt.Open(path, 0600, nil) if err != ni...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/get.go
Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/get.go
package main import ( "os" "github.com/DavidHuie/httpq/Godeps/_workspace/src/github.com/boltdb/bolt" ) // Get retrieves the value for a given bucket/key. func Get(path, name, key string) { if _, err := os.Stat(path); os.IsNotExist(err) { fatal(err) return } db, err := bolt.Open(path, 0600, nil) if err != ...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/buckets_test.go
Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/buckets_test.go
package main_test import ( "testing" "github.com/DavidHuie/httpq/Godeps/_workspace/src/github.com/boltdb/bolt" . "github.com/DavidHuie/httpq/Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt" ) // Ensure that a list of buckets can be retrieved. func TestBuckets(t *testing.T) { SetTestMode(true) open(func(db...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/info.go
Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/info.go
package main import ( "os" "github.com/DavidHuie/httpq/Godeps/_workspace/src/github.com/boltdb/bolt" ) // Info prints basic information about a database. func Info(path string) { if _, err := os.Stat(path); os.IsNotExist(err) { fatal(err) return } db, err := bolt.Open(path, 0600, nil) if err != nil { fa...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/main.go
Godeps/_workspace/src/github.com/boltdb/bolt/cmd/bolt/main.go
package main import ( "bytes" "fmt" "log" "os" "time" "github.com/DavidHuie/httpq/Godeps/_workspace/src/github.com/boltdb/bolt" "github.com/codegangsta/cli" ) var branch, commit string func main() { log.SetFlags(0) NewApp().Run(os.Args) } // NewApp creates an Application instance. func NewApp() *cli.App {...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/redis/scan_test.go
Godeps/_workspace/src/github.com/garyburd/redigo/redis/scan_test.go
// Copyright 2012 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/redis/conn_test.go
Godeps/_workspace/src/github.com/garyburd/redigo/redis/conn_test.go
// Copyright 2012 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/redis/reply_test.go
Godeps/_workspace/src/github.com/garyburd/redigo/redis/reply_test.go
// Copyright 2012 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/redis/pool_test.go
Godeps/_workspace/src/github.com/garyburd/redigo/redis/pool_test.go
// Copyright 2011 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/redis/pubsub.go
Godeps/_workspace/src/github.com/garyburd/redigo/redis/pubsub.go
// Copyright 2012 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/redis/redis.go
Godeps/_workspace/src/github.com/garyburd/redigo/redis/redis.go
// Copyright 2012 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/redis/script.go
Godeps/_workspace/src/github.com/garyburd/redigo/redis/script.go
// Copyright 2012 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/redis/scan.go
Godeps/_workspace/src/github.com/garyburd/redigo/redis/scan.go
// Copyright 2012 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/redis/pubsub_test.go
Godeps/_workspace/src/github.com/garyburd/redigo/redis/pubsub_test.go
// Copyright 2012 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/redis/conn.go
Godeps/_workspace/src/github.com/garyburd/redigo/redis/conn.go
// Copyright 2012 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/redis/log.go
Godeps/_workspace/src/github.com/garyburd/redigo/redis/log.go
// Copyright 2012 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/redis/pool.go
Godeps/_workspace/src/github.com/garyburd/redigo/redis/pool.go
// Copyright 2012 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/redis/zpop_example_test.go
Godeps/_workspace/src/github.com/garyburd/redigo/redis/zpop_example_test.go
// Copyright 2013 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/redis/script_test.go
Godeps/_workspace/src/github.com/garyburd/redigo/redis/script_test.go
// Copyright 2012 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/redis/doc.go
Godeps/_workspace/src/github.com/garyburd/redigo/redis/doc.go
// Copyright 2012 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/redis/reply.go
Godeps/_workspace/src/github.com/garyburd/redigo/redis/reply.go
// Copyright 2012 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/redis/test_test.go
Godeps/_workspace/src/github.com/garyburd/redigo/redis/test_test.go
// Copyright 2012 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/internal/commandinfo.go
Godeps/_workspace/src/github.com/garyburd/redigo/internal/commandinfo.go
// Copyright 2014 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
DavidHuie/httpq
https://github.com/DavidHuie/httpq/blob/b61e704546bfd3cabc2a244f8be9b99d40a17d43/Godeps/_workspace/src/github.com/garyburd/redigo/internal/redistest/testdb.go
Godeps/_workspace/src/github.com/garyburd/redigo/internal/redistest/testdb.go
// Copyright 2014 Gary Burd // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wr...
go
MIT
b61e704546bfd3cabc2a244f8be9b99d40a17d43
2026-01-07T09:45:59.175747Z
false
go-perf/go-perftuner
https://github.com/go-perf/go-perftuner/blob/ece170aa2233db3b708470a0eb8a7fb8d5be6224/cmd_bounds.go
cmd_bounds.go
package main import ( "context" "flag" "fmt" "os/exec" "regexp" ) type boundCheckRunner struct { flagMod string asJSON bool messageRE *regexp.Regexp } func (r *boundCheckRunner) ExecCommand(_ context.Context, args []string) error { fset := flag.NewFlagSet("boundCheck", flag.ContinueOnError) fset.StringVa...
go
MIT
ece170aa2233db3b708470a0eb8a7fb8d5be6224
2026-01-07T09:45:59.612345Z
false
go-perf/go-perftuner
https://github.com/go-perf/go-perftuner/blob/ece170aa2233db3b708470a0eb8a7fb8d5be6224/cmd_benchstat.go
cmd_benchstat.go
package main import ( "bytes" "context" "errors" "flag" "fmt" "log" "math" "os" "strings" "golang.org/x/perf/benchstat" ) type benchstatRunner struct{} func (r *benchstatRunner) ExecCommand(_ context.Context, args []string) error { fset := flag.NewFlagSet("benchstat", flag.ContinueOnError) flagDeltaTest...
go
MIT
ece170aa2233db3b708470a0eb8a7fb8d5be6224
2026-01-07T09:45:59.612345Z
false
go-perf/go-perftuner
https://github.com/go-perf/go-perftuner/blob/ece170aa2233db3b708470a0eb8a7fb8d5be6224/cmd_fnsize.go
cmd_fnsize.go
package main import ( "context" "flag" "fmt" "os/exec" "regexp" ) type funcSizeRunner struct { flagMod string asJSON bool messageRE *regexp.Regexp filterRE *regexp.Regexp } func (r *funcSizeRunner) ExecCommand(_ context.Context, args []string) error { fset := flag.NewFlagSet("funcSize", flag.ContinueOnE...
go
MIT
ece170aa2233db3b708470a0eb8a7fb8d5be6224
2026-01-07T09:45:59.612345Z
false
go-perf/go-perftuner
https://github.com/go-perf/go-perftuner/blob/ece170aa2233db3b708470a0eb8a7fb8d5be6224/utils.go
utils.go
package main import ( "encoding/json" "fmt" "strconv" ) func atoi(s string) int { v, err := strconv.Atoi(s) if err != nil { return 0 } return v } func marshalJSON(results interface{}) { raw, _ := json.MarshalIndent(results, "", " ") fmt.Printf("%s", string(raw)) }
go
MIT
ece170aa2233db3b708470a0eb8a7fb8d5be6224
2026-01-07T09:45:59.612345Z
false
go-perf/go-perftuner
https://github.com/go-perf/go-perftuner/blob/ece170aa2233db3b708470a0eb8a7fb8d5be6224/cmd_escape.go
cmd_escape.go
package main import ( "context" "flag" "fmt" "os/exec" "regexp" ) type escapeAnalysisRunner struct { flagMod string asJSON bool messageRE *regexp.Regexp } func (r *escapeAnalysisRunner) ExecCommand(_ context.Context, args []string) error { fset := flag.NewFlagSet("escapeAnalysis", flag.ContinueOnError) f...
go
MIT
ece170aa2233db3b708470a0eb8a7fb8d5be6224
2026-01-07T09:45:59.612345Z
false
go-perf/go-perftuner
https://github.com/go-perf/go-perftuner/blob/ece170aa2233db3b708470a0eb8a7fb8d5be6224/cmd_inline.go
cmd_inline.go
package main import ( "context" "flag" "fmt" "os/exec" "regexp" ) type almostInlinedRunner struct { flagMod string asJSON bool threshold int messageRE *regexp.Regexp } func (r *almostInlinedRunner) ExecCommand(_ context.Context, args []string) error { fset := flag.NewFlagSet("almostInlined", flag.Con...
go
MIT
ece170aa2233db3b708470a0eb8a7fb8d5be6224
2026-01-07T09:45:59.612345Z
false
go-perf/go-perftuner
https://github.com/go-perf/go-perftuner/blob/ece170aa2233db3b708470a0eb8a7fb8d5be6224/main.go
main.go
package main import ( "github.com/cristalhq/acmd" ) const version = "v0.0.0" func main() { r := acmd.RunnerOf(cmds, acmd.Config{ Version: version, }) if err := r.Run(); err != nil { r.Exit(err) } } var cmds = []acmd.Command{ { Name: "almostInlined", Alias: "inl", Description: "find func...
go
MIT
ece170aa2233db3b708470a0eb8a7fb8d5be6224
2026-01-07T09:45:59.612345Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/monitored_cache.go
monitored_cache.go
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/dialer.go
dialer.go
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/e2e_sqlserver_test.go
e2e_sqlserver_test.go
// Copyright 2022 Google LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // https://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writin...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/e2e_postgres_test.go
e2e_postgres_test.go
// Copyright 2020 Google LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // https://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writin...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/dialer_test.go
dialer_test.go
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
true
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/e2e_mysql_test.go
e2e_mysql_test.go
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/options.go
options.go
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/key_gen_test.go
key_gen_test.go
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/monitored_cache_test.go
monitored_cache_test.go
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/doc.go
doc.go
// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/metrics_test.go
metrics_test.go
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/postgres/pgxv4/postgres.go
postgres/pgxv4/postgres.go
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/postgres/pgxv5/postgres.go
postgres/pgxv5/postgres.go
// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/sqlserver/mssql/mssql.go
sqlserver/mssql/mssql.go
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/mysql/mysql/mysql.go
mysql/mysql/mysql.go
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/errtype/errors_test.go
errtype/errors_test.go
// Copyright 2021 Google LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // https://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writin...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/errtype/errors.go
errtype/errors.go
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/mock/sqladmin.go
internal/mock/sqladmin.go
// Copyright 2021 Google LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // https://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writin...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/mock/cloudsql.go
internal/mock/cloudsql.go
// Copyright 2021 Google LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // https://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writin...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/mock/certs.go
internal/mock/certs.go
// Copyright 2025 Google LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // https://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writin...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/mdx/metadata_exchange.pb.go
internal/mdx/metadata_exchange.pb.go
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/cloudsql/lazy.go
internal/cloudsql/lazy.go
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/cloudsql/metadataexchange_test.go
internal/cloudsql/metadataexchange_test.go
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/cloudsql/metadataexchange.go
internal/cloudsql/metadataexchange.go
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/cloudsql/resolver.go
internal/cloudsql/resolver.go
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/cloudsql/retry_test.go
internal/cloudsql/retry_test.go
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/cloudsql/resolver_test.go
internal/cloudsql/resolver_test.go
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/cloudsql/instance.go
internal/cloudsql/instance.go
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/cloudsql/lazy_test.go
internal/cloudsql/lazy_test.go
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/cloudsql/retry.go
internal/cloudsql/retry.go
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/cloudsql/refresh.go
internal/cloudsql/refresh.go
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/cloudsql/instance_test.go
internal/cloudsql/instance_test.go
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/cloudsql/refresh_test.go
internal/cloudsql/refresh_test.go
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/cloudsql/tls_verify.go
internal/cloudsql/tls_verify.go
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/cloudsql/tls_verify_test.go
internal/cloudsql/tls_verify_test.go
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/trace/metrics.go
internal/trace/metrics.go
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/trace/trace.go
internal/trace/trace.go
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/internal/trace/metrics_test.go
internal/trace/metrics_test.go
// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/examples/cloudrun/postgres/main.go
examples/cloudrun/postgres/main.go
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/examples/cloudrun/sqlserver/main.go
examples/cloudrun/sqlserver/main.go
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/examples/cloudrun/mysql/main.go
examples/cloudrun/mysql/main.go
// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/debug/debug.go
debug/debug.go
// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/instance/conn_name.go
instance/conn_name.go
// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
GoogleCloudPlatform/cloud-sql-go-connector
https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/976120e83581578423ffcb817b2a1b5244ced3d8/instance/conn_name_test.go
instance/conn_name_test.go
// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
go
Apache-2.0
976120e83581578423ffcb817b2a1b5244ced3d8
2026-01-07T09:45:59.105677Z
false
gkze/gh-stars
https://github.com/gkze/gh-stars/blob/3fb2f283b5ff4d6fbe5a9b34e1bcde9d01f5a3d8/auth/auth.go
auth/auth.go
package auth import ( "fmt" "os" "os/user" "path/filepath" "github.com/jdxcode/netrc" ) const ( // NetrcUsernameField is the value that holds the username in the netrc format NetrcUsernameField string = "login" // NetrcPasswordField is the value that holds the passwod in the netrc format NetrcPasswordField...
go
MIT
3fb2f283b5ff4d6fbe5a9b34e1bcde9d01f5a3d8
2026-01-07T09:45:58.344818Z
false
gkze/gh-stars
https://github.com/gkze/gh-stars/blob/3fb2f283b5ff4d6fbe5a9b34e1bcde9d01f5a3d8/auth/auth_test.go
auth/auth_test.go
package auth import ( "io/ioutil" "os" "os/user" "testing" "github.com/stretchr/testify/assert" ) // Netrc is a valid netrc configuration file var Netrc = ` machine host.domain.tld login user password secret ` // ValidUser is a valid root user var ValidUser = &user.User{ Uid: "1", Gid: "1", User...
go
MIT
3fb2f283b5ff4d6fbe5a9b34e1bcde9d01f5a3d8
2026-01-07T09:45:58.344818Z
false
gkze/gh-stars
https://github.com/gkze/gh-stars/blob/3fb2f283b5ff4d6fbe5a9b34e1bcde9d01f5a3d8/cmd/stars/stars.go
cmd/stars/stars.go
package main import ( "errors" "fmt" "io" "net/url" "os" "strconv" "strings" "sync" "text/tabwriter" "time" "github.com/gkze/stars/starmanager" "github.com/gkze/stars/utils" "github.com/pkg/browser" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" "golang.org/x/crypto/ssh/terminal" ) var ( ...
go
MIT
3fb2f283b5ff4d6fbe5a9b34e1bcde9d01f5a3d8
2026-01-07T09:45:58.344818Z
false
gkze/gh-stars
https://github.com/gkze/gh-stars/blob/3fb2f283b5ff4d6fbe5a9b34e1bcde9d01f5a3d8/starmanager/starmanager.go
starmanager/starmanager.go
package starmanager import ( "bufio" "context" "errors" "fmt" "io" "math/rand" "net/http" "net/url" "os" "os/user" "path/filepath" "sort" "strings" "sync" "time" "github.com/hashicorp/go-multierror" "github.com/asdine/storm" "github.com/asdine/storm/q" "github.com/gkze/gh-stars/auth" "github.com/...
go
MIT
3fb2f283b5ff4d6fbe5a9b34e1bcde9d01f5a3d8
2026-01-07T09:45:58.344818Z
false
gkze/gh-stars
https://github.com/gkze/gh-stars/blob/3fb2f283b5ff4d6fbe5a9b34e1bcde9d01f5a3d8/utils/utils.go
utils/utils.go
package utils import ( "errors" "fmt" "io" "io/ioutil" "net/http" "net/url" "os" "strings" "github.com/scylladb/go-set" "github.com/spf13/afero" "go.uber.org/multierr" xurls "mvdan.cc/xurls/v2" ) // StringInSlice checks whether a given string is in a slice func StringInSlice(s string, sl []string) bool {...
go
MIT
3fb2f283b5ff4d6fbe5a9b34e1bcde9d01f5a3d8
2026-01-07T09:45:58.344818Z
false
gkze/gh-stars
https://github.com/gkze/gh-stars/blob/3fb2f283b5ff4d6fbe5a9b34e1bcde9d01f5a3d8/utils/utils_test.go
utils/utils_test.go
package utils import ( "os" "testing" "github.com/spf13/afero" "github.com/stretchr/testify/assert" ) func TestStringInSlice(t *testing.T) { testCases := []struct { s string sl []string sIns bool }{ { s: "sub", sl: []string{"sub", "string"}, sIns: true, }, { s: "notsub", ...
go
MIT
3fb2f283b5ff4d6fbe5a9b34e1bcde9d01f5a3d8
2026-01-07T09:45:58.344818Z
false
jpillora/go-tld
https://github.com/jpillora/go-tld/blob/22188b0f455fb9da34fcf3e011849f963493767b/parse_test.go
parse_test.go
package tld import ( "testing" ) func run(input, sub, dom, tld string, icann, errorExpected bool, t *testing.T) { u, err := Parse(input) if err != nil && errorExpected { return } else if err != nil { t.Errorf("errored '%s'", err) } else if u.TLD != tld { t.Errorf("should have TLD '%s', got '%s'", tld, u....
go
MIT
22188b0f455fb9da34fcf3e011849f963493767b
2026-01-07T09:45:59.889393Z
false
jpillora/go-tld
https://github.com/jpillora/go-tld/blob/22188b0f455fb9da34fcf3e011849f963493767b/parse.go
parse.go
//go:generate sh generate.sh //Package tld has the same API as net/url except //tld.URL contains extra fields: Subdomain, Domain, TLD and Port. package tld import ( "fmt" "net/url" "strings" "golang.org/x/net/publicsuffix" ) //URL embeds net/url and adds extra fields ontop type URL struct { Subdomain, Domain, ...
go
MIT
22188b0f455fb9da34fcf3e011849f963493767b
2026-01-07T09:45:59.889393Z
false
jpillora/go-tld
https://github.com/jpillora/go-tld/blob/22188b0f455fb9da34fcf3e011849f963493767b/example/main.go
example/main.go
package main import ( "fmt" "github.com/jpillora/go-tld" ) func main() { urls := []string{ "http://google.com", "http://blog.google", "https://www.medi-cal.ca.gov/", "https://ato.gov.au", "http://a.very.complex-domain.co.uk:8080/foo/bar", "http://a.domain.that.is.unmanaged", } for _, url := range ur...
go
MIT
22188b0f455fb9da34fcf3e011849f963493767b
2026-01-07T09:45:59.889393Z
false
LambdaExpression/ChinaTelecomMonitor
https://github.com/LambdaExpression/ChinaTelecomMonitor/blob/8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5/cmd/main.go
cmd/main.go
package main import ( "China_Telecom_Monitor/configs" "China_Telecom_Monitor/models" "China_Telecom_Monitor/tools" "flag" "fmt" "github.com/golang-module/carbon/v2" "github.com/kataras/iris/v12" "github.com/robfig/cron/v3" "go.uber.org/zap" "go.uber.org/zap/zapcore" "gopkg.in/natefinch/lumberjack.v2" "stri...
go
MIT
8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5
2026-01-07T09:45:56.860145Z
false
LambdaExpression/ChinaTelecomMonitor
https://github.com/LambdaExpression/ChinaTelecomMonitor/blob/8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5/tools/file.go
tools/file.go
package tools import ( "China_Telecom_Monitor/configs" "errors" "os" "path/filepath" ) // 判断文件是否存在 func IsExist(file string) bool { _, err := os.Stat(file) if err != nil { return os.IsExist(err) } return true } // 创建文件及其文件夹 func Create(path string) (*os.File, error) { //if IsExist(path) { // return nil,e...
go
MIT
8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5
2026-01-07T09:45:56.860145Z
false
LambdaExpression/ChinaTelecomMonitor
https://github.com/LambdaExpression/ChinaTelecomMonitor/blob/8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5/tools/token.go
tools/token.go
package tools import ( "China_Telecom_Monitor/configs" "encoding/json" ) type Token struct { ChinaTelecomToken string `json:"chinaTelecomToken"` LoginLastTime int64 `json:"loginLastTime"` } var TokenFile = "/token.json" func GetToken() *Token { token := Token{} jsonStr, err := ReadFile(configs.DataPath +...
go
MIT
8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5
2026-01-07T09:45:56.860145Z
false
LambdaExpression/ChinaTelecomMonitor
https://github.com/LambdaExpression/ChinaTelecomMonitor/blob/8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5/tools/conversion.go
tools/conversion.go
package tools import ( "China_Telecom_Monitor/models" "github.com/golang-module/carbon/v2" "strconv" "strings" ) func ToSummary(qryImportantData *models.Result[models.ImportantData], username string, time carbon.Carbon) models.Summary { var ds models.Summary if qryImportantData == nil || qryImportantData.Header...
go
MIT
8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5
2026-01-07T09:45:56.860145Z
false
LambdaExpression/ChinaTelecomMonitor
https://github.com/LambdaExpression/ChinaTelecomMonitor/blob/8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5/tools/flow.go
tools/flow.go
package tools import ( "errors" "strconv" "strings" ) func ToInt64(s string) (int64, error) { if strings.Contains(s, "GB") { sn := strings.ReplaceAll(s, "GB", "") n, err := strconv.ParseFloat(sn, 64) if err != nil { return 0, err } return int64(n * 1024 * 1024), nil } else if strings.Contains(s, "MB...
go
MIT
8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5
2026-01-07T09:45:56.860145Z
false
LambdaExpression/ChinaTelecomMonitor
https://github.com/LambdaExpression/ChinaTelecomMonitor/blob/8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5/tools/chinaTelecom.go
tools/chinaTelecom.go
package tools import ( "China_Telecom_Monitor/configs" "China_Telecom_Monitor/models" "crypto/rand" "crypto/rsa" "crypto/x509" "encoding/base64" "encoding/json" "encoding/pem" "fmt" "github.com/golang-module/carbon/v2" "io" "math/big" "net/http" "strconv" "strings" "time" ) func ChinaTelecomLogin(user...
go
MIT
8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5
2026-01-07T09:45:56.860145Z
false
LambdaExpression/ChinaTelecomMonitor
https://github.com/LambdaExpression/ChinaTelecomMonitor/blob/8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5/models/summary.go
models/summary.go
package models import ( "github.com/golang-module/carbon/v2" ) type Summary struct { ID int `gorm:"primaryKey;autoIncrement" json:"id"` Username string `gorm:"type:varchar(1024)" json:"username"` // 电信账号名 Use int64 `gorm:"type:int" json:"use"` /...
go
MIT
8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5
2026-01-07T09:45:56.860145Z
false
LambdaExpression/ChinaTelecomMonitor
https://github.com/LambdaExpression/ChinaTelecomMonitor/blob/8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5/models/detail.go
models/detail.go
package models type DetailRequest struct { UsageCommon int64 `json:"usageCommon"` VoiceUsage string `json:"voiceUsage"` Used int64 `json:"used"` Xvalue int `json:"xvalue"` ParaFieldResult string ...
go
MIT
8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5
2026-01-07T09:45:56.860145Z
false
LambdaExpression/ChinaTelecomMonitor
https://github.com/LambdaExpression/ChinaTelecomMonitor/blob/8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5/models/telecom.go
models/telecom.go
package models type Request[C any] struct { Content C `json:"content"` HeaderInfos RequestHeaderInfos `json:"headerInfos"` } type LoginRequestContent struct { FieldData LoginRequestFieldData `json:"fieldData"` Attach string `json:"attach"` } type LoginRequestFieldData struct...
go
MIT
8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5
2026-01-07T09:45:56.860145Z
false
LambdaExpression/ChinaTelecomMonitor
https://github.com/LambdaExpression/ChinaTelecomMonitor/blob/8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5/configs/param.go
configs/param.go
package configs import ( "China_Telecom_Monitor/models" "go.uber.org/zap" ) var Prot string var Username string var Password string var LoginIntervalTime int var TimeOut int64 var IntervalsTime int var DataPath string var LogLevel string var LogEncoding string var Dev bool var PrintVersion bool var ClientVersi...
go
MIT
8f321516a1a1eb7adcb8aba3a5a56d3aba8677e5
2026-01-07T09:45:56.860145Z
false
aydinnyunus/wallet-tracker
https://github.com/aydinnyunus/wallet-tracker/blob/3a71f080080541a24ac49aaa22468db8e4dedfc7/cmd/wallet-tracker/main.go
cmd/wallet-tracker/main.go
package main import ( "fmt" generic "github.com/aydinnyunus/wallet-tracker/cli/command/repository" "github.com/fatih/color" "github.com/joho/godotenv" "log" "os" "github.com/spf13/cobra" "github.com/aydinnyunus/wallet-tracker/cli/command/commands" ) var rootCmd *cobra.Command func main() { err := godotenv...
go
Apache-2.0
3a71f080080541a24ac49aaa22468db8e4dedfc7
2026-01-07T09:45:59.997897Z
false
aydinnyunus/wallet-tracker
https://github.com/aydinnyunus/wallet-tracker/blob/3a71f080080541a24ac49aaa22468db8e4dedfc7/domain/repository/models.go
domain/repository/models.go
package repository import ( "github.com/go-playground/validator" ) // global variables (not cool) for this package var ( validate = validator.New() ) // Adding custom validator operators for our usecase // Database stores credentials and configurations about strixeye agent database. type Database struct { DBAddr...
go
Apache-2.0
3a71f080080541a24ac49aaa22468db8e4dedfc7
2026-01-07T09:45:59.997897Z
false