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
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/mattn/go-isatty/isatty_appengine.go
vendor/github.com/mattn/go-isatty/isatty_appengine.go
// +build appengine package isatty // IsTerminal returns true if the file descriptor is terminal which // is always false on on appengine classic which is a sandboxed PaaS. func IsTerminal(fd uintptr) bool { return false } // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 // terminal. Th...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/mattn/go-isatty/isatty_linux_ppc64x.go
vendor/github.com/mattn/go-isatty/isatty_linux_ppc64x.go
// +build linux // +build ppc64 ppc64le package isatty import ( "unsafe" syscall "golang.org/x/sys/unix" ) const ioctlReadTermios = syscall.TCGETS // IsTerminal return true if the file descriptor is terminal. func IsTerminal(fd uintptr) bool { var termios syscall.Termios _, _, err := syscall.Syscall6(syscall.S...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/mattn/go-isatty/isatty_linux.go
vendor/github.com/mattn/go-isatty/isatty_linux.go
// +build linux // +build !appengine,!ppc64,!ppc64le package isatty import ( "syscall" "unsafe" ) const ioctlReadTermios = syscall.TCGETS // IsTerminal return true if the file descriptor is terminal. func IsTerminal(fd uintptr) bool { var termios syscall.Termios _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/mattn/go-isatty/isatty_solaris.go
vendor/github.com/mattn/go-isatty/isatty_solaris.go
// +build solaris // +build !appengine package isatty import ( "golang.org/x/sys/unix" ) // IsTerminal returns true if the given file descriptor is a terminal. // see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c func IsTerminal(fd uintptr) bool { var termio unix.Termi...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/mattn/go-isatty/isatty_others_test.go
vendor/github.com/mattn/go-isatty/isatty_others_test.go
// +build !windows package isatty import ( "os" "testing" ) func TestTerminal(t *testing.T) { // test for non-panic IsTerminal(os.Stdout.Fd()) } func TestCygwinPipeName(t *testing.T) { if IsCygwinTerminal(os.Stdout.Fd()) { t.Fatal("should be false always") } }
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/mattn/go-isatty/example_test.go
vendor/github.com/mattn/go-isatty/example_test.go
package isatty_test import ( "fmt" "os" "github.com/mattn/go-isatty" ) func Example() { if isatty.IsTerminal(os.Stdout.Fd()) { fmt.Println("Is Terminal") } else if isatty.IsCygwinTerminal(os.Stdout.Fd()) { fmt.Println("Is Cygwin/MSYS2 Terminal") } else { fmt.Println("Is Not Terminal") } }
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/mattn/go-isatty/isatty_others.go
vendor/github.com/mattn/go-isatty/isatty_others.go
// +build !windows // +build !appengine package isatty // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 // terminal. This is also always false on this environment. func IsCygwinTerminal(fd uintptr) bool { return false }
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/mattn/go-isatty/isatty_windows_test.go
vendor/github.com/mattn/go-isatty/isatty_windows_test.go
// +build windows package isatty import ( "testing" ) func TestCygwinPipeName(t *testing.T) { tests := []struct { name string result bool }{ {``, false}, {`\msys-`, false}, {`\cygwin-----`, false}, {`\msys-x-PTY5-pty1-from-master`, false}, {`\cygwin-x-PTY5-from-master`, false}, {`\cygwin-x-pty2-...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/mattn/go-isatty/doc.go
vendor/github.com/mattn/go-isatty/doc.go
// Package isatty implements interface to isatty package isatty
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/flags.go
vendor/github.com/jessevdk/go-flags/flags.go
// Copyright 2012 Jesse van den Kieboom. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* Package flags provides an extensive command line option parser. The flags package is similar in functionality to the go built-in flag package but prov...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/optstyle_windows.go
vendor/github.com/jessevdk/go-flags/optstyle_windows.go
// +build !forceposix package flags import ( "strings" ) // Windows uses a front slash for both short and long options. Also it uses // a colon for name/argument delimter. const ( defaultShortOptDelimiter = '/' defaultLongOptDelimiter = "/" defaultNameArgDelimiter = ':' ) func argumentStartsOption(arg string...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/parser.go
vendor/github.com/jessevdk/go-flags/parser.go
// Copyright 2012 Jesse van den Kieboom. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package flags import ( "bytes" "fmt" "os" "path" "sort" "strings" "unicode/utf8" ) // A Parser provides command line option parsing. It can cont...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/command_test.go
vendor/github.com/jessevdk/go-flags/command_test.go
package flags import ( "fmt" "testing" ) func TestCommandInline(t *testing.T) { var opts = struct { Value bool `short:"v"` Command struct { G bool `short:"g"` } `command:"cmd"` }{} p, ret := assertParserSuccess(t, &opts, "-v", "cmd", "-g") assertStringArray(t, ret, []string{}) if p.Active == nil {...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/marshal_test.go
vendor/github.com/jessevdk/go-flags/marshal_test.go
package flags import ( "fmt" "testing" ) type marshalled string func (m *marshalled) UnmarshalFlag(value string) error { if value == "yes" { *m = "true" } else if value == "no" { *m = "false" } else { return fmt.Errorf("`%s' is not a valid value, please specify `yes' or `no'", value) } return nil } fu...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/unknown_test.go
vendor/github.com/jessevdk/go-flags/unknown_test.go
package flags import ( "testing" ) func TestUnknownFlags(t *testing.T) { var opts = struct { Verbose []bool `short:"v" long:"verbose" description:"Verbose output"` }{} args := []string{ "-f", } p := NewParser(&opts, 0) args, err := p.ParseArgs(args) if err == nil { t.Fatal("Expected error for unknown...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/assert_test.go
vendor/github.com/jessevdk/go-flags/assert_test.go
package flags import ( "fmt" "io" "io/ioutil" "os" "os/exec" "path" "runtime" "testing" ) func assertCallerInfo() (string, int) { ptr := make([]uintptr, 15) n := runtime.Callers(1, ptr) if n == 0 { return "", 0 } mef := runtime.FuncForPC(ptr[0]) mefile, meline := mef.FileLine(ptr[0]) for i := 2; i...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/convert_test.go
vendor/github.com/jessevdk/go-flags/convert_test.go
package flags import ( "testing" "time" ) func expectConvert(t *testing.T, o *Option, expected string) { s, err := convertToString(o.value, o.tag) if err != nil { t.Errorf("Unexpected error: %v", err) return } assertString(t, s, expected) } func TestConvertToString(t *testing.T) { d, _ := time.ParseDura...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/tiocgwinsz_other.go
vendor/github.com/jessevdk/go-flags/tiocgwinsz_other.go
// +build !darwin,!freebsd,!netbsd,!openbsd,!linux package flags const ( tIOCGWINSZ = 0 )
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/error.go
vendor/github.com/jessevdk/go-flags/error.go
package flags import ( "fmt" ) // ErrorType represents the type of error. type ErrorType uint const ( // ErrUnknown indicates a generic error. ErrUnknown ErrorType = iota // ErrExpectedArgument indicates that an argument was expected. ErrExpectedArgument // ErrUnknownFlag indicates an unknown flag. ErrUnkno...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/option.go
vendor/github.com/jessevdk/go-flags/option.go
package flags import ( "bytes" "fmt" "os" "reflect" "strings" "unicode/utf8" ) // Option flag information. Contains a description of the option, short and // long name as well as a default value and whether an argument for this // flag is optional. type Option struct { // The description of the option flag. Th...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/group.go
vendor/github.com/jessevdk/go-flags/group.go
// Copyright 2012 Jesse van den Kieboom. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package flags import ( "errors" "reflect" "strings" "unicode/utf8" ) // ErrNotPointerToStruct indicates that a provided data container is not // a ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/man.go
vendor/github.com/jessevdk/go-flags/man.go
package flags import ( "fmt" "io" "runtime" "strings" "time" ) func manQuote(s string) string { return strings.Replace(s, "\\", "\\\\", -1) } func formatForMan(wr io.Writer, s string) { for { idx := strings.IndexRune(s, '`') if idx < 0 { fmt.Fprintf(wr, "%s", manQuote(s)) break } fmt.Fprintf(w...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/tag_test.go
vendor/github.com/jessevdk/go-flags/tag_test.go
package flags import ( "testing" ) func TestTagMissingColon(t *testing.T) { var opts = struct { Value bool `short` }{} assertParseFail(t, ErrTag, "expected `:' after key name, but got end of tag (in `short`)", &opts, "") } func TestTagMissingValue(t *testing.T) { var opts = struct { Value bool `short:` }{...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/long_test.go
vendor/github.com/jessevdk/go-flags/long_test.go
package flags import ( "testing" ) func TestLong(t *testing.T) { var opts = struct { Value bool `long:"value"` }{} ret := assertParseSuccess(t, &opts, "--value") assertStringArray(t, ret, []string{}) if !opts.Value { t.Errorf("Expected Value to be true") } } func TestLongArg(t *testing.T) { var opts =...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/group_test.go
vendor/github.com/jessevdk/go-flags/group_test.go
package flags import ( "testing" ) func TestGroupInline(t *testing.T) { var opts = struct { Value bool `short:"v"` Group struct { G bool `short:"g"` } `group:"Grouped Options"` }{} p, ret := assertParserSuccess(t, &opts, "-v", "-g") assertStringArray(t, ret, []string{}) if !opts.Value { t.Errorf(...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/multitag.go
vendor/github.com/jessevdk/go-flags/multitag.go
package flags import ( "strconv" ) type multiTag struct { value string cache map[string][]string } func newMultiTag(v string) multiTag { return multiTag{ value: v, } } func (x *multiTag) scan() (map[string][]string, error) { v := x.value ret := make(map[string][]string) // This is mostly copied from ref...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/convert.go
vendor/github.com/jessevdk/go-flags/convert.go
// Copyright 2012 Jesse van den Kieboom. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package flags import ( "fmt" "reflect" "strconv" "strings" "time" ) // Marshaler is the interface implemented by types that can marshal themselves...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/termsize_nosysioctl.go
vendor/github.com/jessevdk/go-flags/termsize_nosysioctl.go
// +build windows plan9 solaris appengine package flags func getTerminalColumns() int { return 80 }
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/parser_test.go
vendor/github.com/jessevdk/go-flags/parser_test.go
package flags import ( "fmt" "os" "reflect" "runtime" "strconv" "strings" "testing" "time" ) type defaultOptions struct { Int int `long:"i"` IntDefault int `long:"id" default:"1"` Float64 float64 `long:"f"` Float64Default float64 `long:"fd" default:"-3.14"` NumericFlag bool `short:"3"` ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/ini_test.go
vendor/github.com/jessevdk/go-flags/ini_test.go
package flags import ( "bytes" "fmt" "io/ioutil" "os" "reflect" "strings" "testing" ) func TestWriteIni(t *testing.T) { oldEnv := EnvSnapshot() defer oldEnv.Restore() os.Setenv("ENV_DEFAULT", "env-def") var tests = []struct { args []string options IniOptions expected string }{ { []string{...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/completion_test.go
vendor/github.com/jessevdk/go-flags/completion_test.go
package flags import ( "bytes" "io" "os" "path" "path/filepath" "reflect" "runtime" "strings" "testing" ) type TestComplete struct { } func (t *TestComplete) Complete(match string) []Completion { options := []string{ "hello world", "hello universe", "hello multiverse", } ret := make([]Completion, ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/tiocgwinsz_bsdish.go
vendor/github.com/jessevdk/go-flags/tiocgwinsz_bsdish.go
// +build darwin freebsd netbsd openbsd package flags const ( tIOCGWINSZ = 0x40087468 )
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/optstyle_other.go
vendor/github.com/jessevdk/go-flags/optstyle_other.go
// +build !windows forceposix package flags import ( "strings" ) const ( defaultShortOptDelimiter = '-' defaultLongOptDelimiter = "--" defaultNameArgDelimiter = '=' ) func argumentStartsOption(arg string) bool { return len(arg) > 0 && arg[0] == '-' } func argumentIsOption(arg string) bool { if len(arg) > 1...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/help_test.go
vendor/github.com/jessevdk/go-flags/help_test.go
package flags import ( "bufio" "bytes" "fmt" "os" "runtime" "strings" "testing" "time" ) type helpOptions struct { Verbose []bool `short:"v" long:"verbose" description:"Show verbose debug information" ini-name:"verbose"` Call func(string) `short:"c" description:"Call phone number"...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/ini.go
vendor/github.com/jessevdk/go-flags/ini.go
package flags import ( "bufio" "fmt" "io" "os" "reflect" "sort" "strconv" "strings" ) // IniError contains location information on where an error occurred. type IniError struct { // The error message. Message string // The filename of the file in which the error occurred. File string // The line number...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/arg_test.go
vendor/github.com/jessevdk/go-flags/arg_test.go
package flags import ( "testing" ) func TestPositional(t *testing.T) { var opts = struct { Value bool `short:"v"` Positional struct { Command int Filename string Rest []string } `positional-args:"yes" required:"yes"` }{} p := NewParser(&opts, Default) ret, err := p.ParseArgs([]string{"10", ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/example_test.go
vendor/github.com/jessevdk/go-flags/example_test.go
// Example of use of the flags package. package flags import ( "fmt" "os/exec" ) func Example() { var opts struct { // Slice of bool will append 'true' each time the option // is encountered (can be set multiple times, like -vvv) Verbose []bool `short:"v" long:"verbose" description:"Show verbose debug inform...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/tiocgwinsz_linux.go
vendor/github.com/jessevdk/go-flags/tiocgwinsz_linux.go
// +build linux package flags const ( tIOCGWINSZ = 0x5413 )
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/options_test.go
vendor/github.com/jessevdk/go-flags/options_test.go
package flags import ( "testing" ) func TestPassDoubleDash(t *testing.T) { var opts = struct { Value bool `short:"v"` }{} p := NewParser(&opts, PassDoubleDash) ret, err := p.ParseArgs([]string{"-v", "--", "-v", "-g"}) if err != nil { t.Fatalf("Unexpected error: %v", err) return } if !opts.Value { t...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/termsize.go
vendor/github.com/jessevdk/go-flags/termsize.go
// +build !windows,!plan9,!solaris,!appengine package flags import ( "syscall" "unsafe" ) type winsize struct { row, col uint16 xpixel, ypixel uint16 } func getTerminalColumns() int { ws := winsize{} if tIOCGWINSZ != 0 { syscall.Syscall(syscall.SYS_IOCTL, uintptr(0), uintptr(tIOCGWINSZ), uin...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/completion.go
vendor/github.com/jessevdk/go-flags/completion.go
package flags import ( "fmt" "path/filepath" "reflect" "sort" "strings" "unicode/utf8" ) // Completion is a type containing information of a completion. type Completion struct { // The completed item Item string // A description of the completed item (optional) Description string } type completions []Comp...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/pointer_test.go
vendor/github.com/jessevdk/go-flags/pointer_test.go
package flags import ( "testing" ) func TestPointerBool(t *testing.T) { var opts = struct { Value *bool `short:"v"` }{} ret := assertParseSuccess(t, &opts, "-v") assertStringArray(t, ret, []string{}) if !*opts.Value { t.Errorf("Expected Value to be true") } } func TestPointerString(t *testing.T) { var...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/arg.go
vendor/github.com/jessevdk/go-flags/arg.go
package flags import ( "reflect" ) // Arg represents a positional argument on the command line. type Arg struct { // The name of the positional argument (used in the help) Name string // A description of the positional argument (used in the help) Description string // The minimal number of required positional...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/command.go
vendor/github.com/jessevdk/go-flags/command.go
package flags import ( "reflect" "sort" "strconv" "strings" ) // Command represents an application command. Commands can be added to the // parser (which itself is a command) and are selected/executed when its name // is specified on the command line. The Command type embeds a Group and // therefore also carries ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/help.go
vendor/github.com/jessevdk/go-flags/help.go
// Copyright 2012 Jesse van den Kieboom. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package flags import ( "bufio" "bytes" "fmt" "io" "runtime" "strings" "unicode/utf8" ) type alignmentInfo struct { maxLongLen int hasShor...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/closest.go
vendor/github.com/jessevdk/go-flags/closest.go
package flags func levenshtein(s string, t string) int { if len(s) == 0 { return len(t) } if len(t) == 0 { return len(s) } dists := make([][]int, len(s)+1) for i := range dists { dists[i] = make([]int, len(t)+1) dists[i][0] = i } for j := range t { dists[0][j] = j } for i, sc := range s { for...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jessevdk/go-flags/short_test.go
vendor/github.com/jessevdk/go-flags/short_test.go
package flags import ( "fmt" "testing" ) func TestShort(t *testing.T) { var opts = struct { Value bool `short:"v"` }{} ret := assertParseSuccess(t, &opts, "-v") assertStringArray(t, ret, []string{}) if !opts.Value { t.Errorf("Expected Value to be true") } } func TestShortTooLong(t *testing.T) { var o...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jmespath/go-jmespath/parser.go
vendor/github.com/jmespath/go-jmespath/parser.go
package jmespath import ( "encoding/json" "fmt" "strconv" "strings" ) type astNodeType int //go:generate stringer -type astNodeType const ( ASTEmpty astNodeType = iota ASTComparator ASTCurrentNode ASTExpRef ASTFunctionExpression ASTField ASTFilterProjection ASTFlatten ASTIdentity ASTIndex ASTIndexExpr...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jmespath/go-jmespath/api.go
vendor/github.com/jmespath/go-jmespath/api.go
package jmespath import "strconv" // JMESPath is the epresentation of a compiled JMES path query. A JMESPath is // safe for concurrent use by multiple goroutines. type JMESPath struct { ast ASTNode intr *treeInterpreter } // Compile parses a JMESPath expression and returns, if successful, a JMESPath // object tha...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jmespath/go-jmespath/astnodetype_string.go
vendor/github.com/jmespath/go-jmespath/astnodetype_string.go
// generated by stringer -type astNodeType; DO NOT EDIT package jmespath import "fmt" const _astNodeType_name = "ASTEmptyASTComparatorASTCurrentNodeASTExpRefASTFunctionExpressionASTFieldASTFilterProjectionASTFlattenASTIdentityASTIndexASTIndexExpressionASTKeyValPairASTLiteralASTMultiSelectHashASTMultiSelectListASTOrE...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jmespath/go-jmespath/lexer.go
vendor/github.com/jmespath/go-jmespath/lexer.go
package jmespath import ( "bytes" "encoding/json" "fmt" "strconv" "strings" "unicode/utf8" ) type token struct { tokenType tokType value string position int length int } type tokType int const eof = -1 // Lexer contains information about the expression being tokenized. type Lexer struct { expres...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jmespath/go-jmespath/interpreter_test.go
vendor/github.com/jmespath/go-jmespath/interpreter_test.go
package jmespath import ( "encoding/json" "testing" "github.com/stretchr/testify/assert" ) type scalars struct { Foo string Bar string } type sliceType struct { A string B []scalars C []*scalars } type benchmarkStruct struct { Fooasdfasdfasdfasdf string } type benchmarkNested struct { Fooasdfasdfasdfasd...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jmespath/go-jmespath/compliance_test.go
vendor/github.com/jmespath/go-jmespath/compliance_test.go
package jmespath import ( "encoding/json" "fmt" "io/ioutil" "os" "path/filepath" "testing" "github.com/stretchr/testify/assert" ) type TestSuite struct { Given interface{} TestCases []TestCase `json:"cases"` Comment string } type TestCase struct { Comment string Expression string Result int...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jmespath/go-jmespath/util.go
vendor/github.com/jmespath/go-jmespath/util.go
package jmespath import ( "errors" "reflect" ) // IsFalse determines if an object is false based on the JMESPath spec. // JMESPath defines false values to be any of: // - An empty string array, or hash. // - The boolean value false. // - nil func isFalse(value interface{}) bool { switch v := value.(type) { case b...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jmespath/go-jmespath/api_test.go
vendor/github.com/jmespath/go-jmespath/api_test.go
package jmespath import ( "testing" "github.com/stretchr/testify/assert" ) func TestValidPrecompiledExpressionSearches(t *testing.T) { assert := assert.New(t) data := make(map[string]interface{}) data["foo"] = "bar" precompiled, err := Compile("foo") assert.Nil(err) result, err := precompiled.Search(data) a...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jmespath/go-jmespath/parser_test.go
vendor/github.com/jmespath/go-jmespath/parser_test.go
package jmespath import ( "fmt" "testing" "github.com/stretchr/testify/assert" ) var parsingErrorTests = []struct { expression string msg string }{ {"foo.", "Incopmlete expression"}, {"[foo", "Incopmlete expression"}, {"]", "Invalid"}, {")", "Invalid"}, {"}", "Invalid"}, {"foo..bar", "Invalid"}, {...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jmespath/go-jmespath/lexer_test.go
vendor/github.com/jmespath/go-jmespath/lexer_test.go
package jmespath import ( "fmt" "testing" "github.com/stretchr/testify/assert" ) var lexingTests = []struct { expression string expected []token }{ {"*", []token{{tStar, "*", 0, 1}}}, {".", []token{{tDot, ".", 0, 1}}}, {"[?", []token{{tFilter, "[?", 0, 2}}}, {"[]", []token{{tFlatten, "[]", 0, 2}}}, {"(",...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jmespath/go-jmespath/functions.go
vendor/github.com/jmespath/go-jmespath/functions.go
package jmespath import ( "encoding/json" "errors" "fmt" "math" "reflect" "sort" "strconv" "strings" "unicode/utf8" ) type jpFunction func(arguments []interface{}) (interface{}, error) type jpType string const ( jpUnknown jpType = "unknown" jpNumber jpType = "number" jpString jpType = "str...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jmespath/go-jmespath/interpreter.go
vendor/github.com/jmespath/go-jmespath/interpreter.go
package jmespath import ( "errors" "reflect" "unicode" "unicode/utf8" ) /* This is a tree based interpreter. It walks the AST and directly interprets the AST to search through a JSON document. */ type treeInterpreter struct { fCall *functionCaller } func newInterpreter() *treeInterpreter { interpreter := ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jmespath/go-jmespath/util_test.go
vendor/github.com/jmespath/go-jmespath/util_test.go
package jmespath import ( "testing" "github.com/stretchr/testify/assert" ) func TestSlicePositiveStep(t *testing.T) { assert := assert.New(t) input := make([]interface{}, 5) input[0] = 0 input[1] = 1 input[2] = 2 input[3] = 3 input[4] = 4 result, err := slice(input, []sliceParam{{0, true}, {3, true}, {1, t...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/jmespath/go-jmespath/toktype_string.go
vendor/github.com/jmespath/go-jmespath/toktype_string.go
// generated by stringer -type=tokType; DO NOT EDIT package jmespath import "fmt" const _tokType_name = "tUnknowntStartDottFiltertFlattentLparentRparentLbrackettRbrackettLbracetRbracetOrtPipetNumbertUnquotedIdentifiertQuotedIdentifiertCommatColontLTtLTEtGTtGTEtEQtNEtJSONLiteraltStringLiteraltCurrenttExpreftAndtNottE...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/terminal_check_appengine.go
vendor/github.com/sirupsen/logrus/terminal_check_appengine.go
// +build appengine gopherjs package logrus import ( "io" ) func checkIfTerminal(w io.Writer) bool { return true }
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/entry_test.go
vendor/github.com/sirupsen/logrus/entry_test.go
package logrus import ( "bytes" "fmt" "testing" "github.com/stretchr/testify/assert" ) func TestEntryWithError(t *testing.T) { assert := assert.New(t) defer func() { ErrorKey = "error" }() err := fmt.Errorf("kaboom at layer %d", 4711) assert.Equal(err, WithError(err).Data["error"]) logger := New() ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/entry.go
vendor/github.com/sirupsen/logrus/entry.go
package logrus import ( "bytes" "fmt" "os" "sync" "time" ) var bufferPool *sync.Pool func init() { bufferPool = &sync.Pool{ New: func() interface{} { return new(bytes.Buffer) }, } } // Defines the key when adding errors using WithError. var ErrorKey = "error" // An entry is the final or intermediate ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/alt_exit_test.go
vendor/github.com/sirupsen/logrus/alt_exit_test.go
package logrus import ( "io/ioutil" "log" "os" "os/exec" "path/filepath" "testing" "time" ) func TestRegister(t *testing.T) { current := len(handlers) RegisterExitHandler(func() {}) if len(handlers) != current+1 { t.Fatalf("expected %d handlers, got %d", current+1, len(handlers)) } } func TestHandler(t ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/logrus.go
vendor/github.com/sirupsen/logrus/logrus.go
package logrus import ( "fmt" "log" "strings" ) // Fields type, used to pass to `WithFields`. type Fields map[string]interface{} // Level type type Level uint32 // Convert the Level to a string. E.g. PanicLevel becomes "panic". func (level Level) String() string { switch level { case DebugLevel: return "debu...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/logger_bench_test.go
vendor/github.com/sirupsen/logrus/logger_bench_test.go
package logrus import ( "os" "testing" ) // smallFields is a small size data set for benchmarking var loggerFields = Fields{ "foo": "bar", "baz": "qux", "one": "two", "three": "four", } func BenchmarkDummyLogger(b *testing.B) { nullf, err := os.OpenFile("/dev/null", os.O_WRONLY, 0666) if err != nil { ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/writer.go
vendor/github.com/sirupsen/logrus/writer.go
package logrus import ( "bufio" "io" "runtime" ) func (logger *Logger) Writer() *io.PipeWriter { return logger.WriterLevel(InfoLevel) } func (logger *Logger) WriterLevel(level Level) *io.PipeWriter { return NewEntry(logger).WriterLevel(level) } func (entry *Entry) Writer() *io.PipeWriter { return entry.Writer...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/example_basic_test.go
vendor/github.com/sirupsen/logrus/example_basic_test.go
package logrus_test import ( "github.com/sirupsen/logrus" "os" ) func Example_basic() { var log = logrus.New() log.Formatter = new(logrus.JSONFormatter) log.Formatter = new(logrus.TextFormatter) //default log.Formatter.(*logrus.TextFormatter).DisableTimestamp = true // remove timestamp from ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/hook_test.go
vendor/github.com/sirupsen/logrus/hook_test.go
package logrus import ( "sync" "testing" "github.com/stretchr/testify/assert" ) type TestHook struct { Fired bool } func (hook *TestHook) Fire(entry *Entry) error { hook.Fired = true return nil } func (hook *TestHook) Levels() []Level { return []Level{ DebugLevel, InfoLevel, WarnLevel, ErrorLevel, ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/example_hook_test.go
vendor/github.com/sirupsen/logrus/example_hook_test.go
package logrus_test import ( "github.com/sirupsen/logrus" "gopkg.in/gemnasium/logrus-airbrake-hook.v2" "os" ) func Example_hook() { var log = logrus.New() log.Formatter = new(logrus.TextFormatter) // default log.Formatter.(*logrus.TextFormatter).DisableTimestamp = true // remove timestamp fr...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/formatter.go
vendor/github.com/sirupsen/logrus/formatter.go
package logrus import "time" const defaultTimestampFormat = time.RFC3339 // The Formatter interface is used to implement a custom Formatter. It takes an // `Entry`. It exposes all the fields, including the default ones: // // * `entry.Data["msg"]`. The message passed from Info, Warn, Error .. // * `entry.Data["time"...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/terminal_bsd.go
vendor/github.com/sirupsen/logrus/terminal_bsd.go
// +build darwin freebsd openbsd netbsd dragonfly // +build !appengine,!gopherjs package logrus import "golang.org/x/sys/unix" const ioctlReadTermios = unix.TIOCGETA type Termios unix.Termios
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/formatter_bench_test.go
vendor/github.com/sirupsen/logrus/formatter_bench_test.go
package logrus import ( "fmt" "testing" "time" ) // smallFields is a small size data set for benchmarking var smallFields = Fields{ "foo": "bar", "baz": "qux", "one": "two", "three": "four", } // largeFields is a large size data set for benchmarking var largeFields = Fields{ "foo": "bar", "baz":...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/logrus_test.go
vendor/github.com/sirupsen/logrus/logrus_test.go
package logrus import ( "bytes" "encoding/json" "strconv" "strings" "sync" "testing" "github.com/stretchr/testify/assert" ) func LogAndAssertJSON(t *testing.T, log func(*Logger), assertions func(fields Fields)) { var buffer bytes.Buffer var fields Fields logger := New() logger.Out = &buffer logger.Forma...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/text_formatter_test.go
vendor/github.com/sirupsen/logrus/text_formatter_test.go
package logrus import ( "bytes" "errors" "fmt" "strings" "testing" "time" ) func TestFormatting(t *testing.T) { tf := &TextFormatter{DisableColors: true} testCases := []struct { value string expected string }{ {`foo`, "time=\"0001-01-01T00:00:00Z\" level=panic test=foo\n"}, } for _, tc := range ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/alt_exit.go
vendor/github.com/sirupsen/logrus/alt_exit.go
package logrus // The following code was sourced and modified from the // https://github.com/tebeka/atexit package governed by the following license: // // Copyright (c) 2012 Miki Tebeka <miki.tebeka@gmail.com>. // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/json_formatter_test.go
vendor/github.com/sirupsen/logrus/json_formatter_test.go
package logrus import ( "encoding/json" "errors" "fmt" "strings" "testing" ) func TestErrorNotLost(t *testing.T) { formatter := &JSONFormatter{} b, err := formatter.Format(WithField("error", errors.New("wild walrus"))) if err != nil { t.Fatal("Unable to format entry: ", err) } entry := make(map[string]i...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/hooks.go
vendor/github.com/sirupsen/logrus/hooks.go
package logrus // A hook to be fired when logging on the logging levels returned from // `Levels()` on your implementation of the interface. Note that this is not // fired in a goroutine or a channel with workers, you should handle such // functionality yourself if your call is non-blocking and you don't wish for // t...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/exported.go
vendor/github.com/sirupsen/logrus/exported.go
package logrus import ( "io" ) var ( // std is the name of the standard logger in stdlib `log` std = New() ) func StandardLogger() *Logger { return std } // SetOutput sets the standard logger output. func SetOutput(out io.Writer) { std.mu.Lock() defer std.mu.Unlock() std.Out = out } // SetFormatter sets the...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/doc.go
vendor/github.com/sirupsen/logrus/doc.go
/* Package logrus is a structured logger for Go, completely API compatible with the standard library logger. The simplest way to use Logrus is simply the package-level exported logger: package main import ( log "github.com/sirupsen/logrus" ) func main() { log.WithFields(log.Fields{ "animal": ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/logger.go
vendor/github.com/sirupsen/logrus/logger.go
package logrus import ( "io" "os" "sync" "sync/atomic" ) type Logger struct { // The logs are `io.Copy`'d to this in a mutex. It's common to set this to a // file, or leave it default which is `os.Stderr`. You can also set this to // something more adventorous, such as logging to Kafka. Out io.Writer // Hook...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/terminal_linux.go
vendor/github.com/sirupsen/logrus/terminal_linux.go
// Based on ssh/terminal: // Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build !appengine,!gopherjs package logrus import "golang.org/x/sys/unix" const ioctlReadTermios = unix.TCGETS type Termios uni...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/json_formatter.go
vendor/github.com/sirupsen/logrus/json_formatter.go
package logrus import ( "encoding/json" "fmt" ) type fieldKey string // FieldMap allows customization of the key names for default fields. type FieldMap map[fieldKey]string // Default key names for the default fields const ( FieldKeyMsg = "msg" FieldKeyLevel = "level" FieldKeyTime = "time" ) func (f FieldM...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/text_formatter.go
vendor/github.com/sirupsen/logrus/text_formatter.go
package logrus import ( "bytes" "fmt" "sort" "strings" "sync" "time" ) const ( nocolor = 0 red = 31 green = 32 yellow = 33 blue = 36 gray = 37 ) var ( baseTimestamp time.Time emptyFieldMap FieldMap ) func init() { baseTimestamp = time.Now() } // TextFormatter formats logs into text type...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go
vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go
// +build !appengine,!gopherjs package logrus import ( "io" "os" "golang.org/x/crypto/ssh/terminal" ) func checkIfTerminal(w io.Writer) bool { switch v := w.(type) { case *os.File: return terminal.IsTerminal(int(v.Fd())) default: return false } }
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/matchers.go
vendor/github.com/onsi/gomega/matchers.go
package gomega import ( "time" "github.com/onsi/gomega/matchers" "github.com/onsi/gomega/types" ) //Equal uses reflect.DeepEqual to compare actual with expected. Equal is strict about //types when performing comparisons. //It is an error for both actual and expected to be nil. Use BeNil() instead. func Equal(ex...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/gomega_dsl.go
vendor/github.com/onsi/gomega/gomega_dsl.go
/* Gomega is the Ginkgo BDD-style testing framework's preferred matcher library. The godoc documentation describes Gomega's API. More comprehensive documentation (with examples!) is available at http://onsi.github.io/gomega/ Gomega on Github: http://github.com/onsi/gomega Learn more about Ginkgo online: http://onsi...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/ghttp/test_server_test.go
vendor/github.com/onsi/gomega/ghttp/test_server_test.go
package ghttp_test import ( "bytes" "io" "io/ioutil" "net/http" "net/url" "regexp" "github.com/golang/protobuf/proto" "github.com/onsi/gomega/gbytes" "github.com/onsi/gomega/ghttp/protobuf" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/ghttp" ) var _ = Describe("TestSer...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
true
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/ghttp/test_server.go
vendor/github.com/onsi/gomega/ghttp/test_server.go
/* Package ghttp supports testing HTTP clients by providing a test server (simply a thin wrapper around httptest's server) that supports registering multiple handlers. Incoming requests are not routed between the different handlers - rather it is merely the order of the handlers that matters. The first request is han...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/ghttp/test_server_suite_test.go
vendor/github.com/onsi/gomega/ghttp/test_server_suite_test.go
package ghttp_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "testing" ) func TestGHTTP(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "GHTTP Suite") }
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/ghttp/handlers.go
vendor/github.com/onsi/gomega/ghttp/handlers.go
package ghttp import ( "encoding/base64" "encoding/json" "fmt" "io/ioutil" "net/http" "net/url" "reflect" "github.com/golang/protobuf/proto" . "github.com/onsi/gomega" "github.com/onsi/gomega/types" ) //CombineHandler takes variadic list of handlers and produces one handler //that calls each handler in ord...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/ghttp/protobuf/protobuf.go
vendor/github.com/onsi/gomega/ghttp/protobuf/protobuf.go
package protobuf //go:generate protoc --go_out=. simple_message.proto
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/ghttp/protobuf/simple_message.pb.go
vendor/github.com/onsi/gomega/ghttp/protobuf/simple_message.pb.go
// Code generated by protoc-gen-go. // source: simple_message.proto // DO NOT EDIT! /* Package protobuf is a generated protocol buffer package. It is generated from these files: simple_message.proto It has these top-level messages: SimpleMessage */ package protobuf import proto "github.com/golang/protobuf/proto" ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/gbytes/io_wrappers.go
vendor/github.com/onsi/gomega/gbytes/io_wrappers.go
package gbytes import ( "errors" "io" "time" ) // ErrTimeout is returned by TimeoutCloser, TimeoutReader, and TimeoutWriter when the underlying Closer/Reader/Writer does not return within the specified timeout var ErrTimeout = errors.New("timeout occurred") // TimeoutCloser returns an io.Closer that wraps the pas...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/gbytes/io_wrappers_test.go
vendor/github.com/onsi/gomega/gbytes/io_wrappers_test.go
package gbytes_test import ( "fmt" "io" "time" . "github.com/onsi/gomega/gbytes" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) type FakeCloser struct { err error duration time.Duration } func (f FakeCloser) Close() error { time.Sleep(f.duration) return f.err } type FakeReader struct { er...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/gbytes/buffer.go
vendor/github.com/onsi/gomega/gbytes/buffer.go
/* Package gbytes provides a buffer that supports incrementally detecting input. You use gbytes.Buffer with the gbytes.Say matcher. When Say finds a match, it fastforwards the buffer's read cursor to the end of that match. Subsequent matches against the buffer will only operate against data that appears *after* the ...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/gbytes/say_matcher.go
vendor/github.com/onsi/gomega/gbytes/say_matcher.go
package gbytes import ( "fmt" "regexp" "github.com/onsi/gomega/format" ) //Objects satisfying the BufferProvider can be used with the Say matcher. type BufferProvider interface { Buffer() *Buffer } /* Say is a Gomega matcher that operates on gbytes.Buffers: Expect(buffer).Should(Say("something")) will succee...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/gbytes/buffer_test.go
vendor/github.com/onsi/gomega/gbytes/buffer_test.go
package gbytes_test import ( "io" "time" . "github.com/onsi/gomega/gbytes" "bytes" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) type SlowReader struct { R io.Reader D time.Duration } func (s SlowReader) Read(p []byte) (int, error) { time.Sleep(s.D) return s.R.Read(p) } var _ = Describe("Buff...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false
erikvanbrakel/anthology
https://github.com/erikvanbrakel/anthology/blob/c715d868faa4799678792337e5f86725ceffd797/vendor/github.com/onsi/gomega/gbytes/say_matcher_test.go
vendor/github.com/onsi/gomega/gbytes/say_matcher_test.go
package gbytes_test import ( "time" . "github.com/onsi/gomega/gbytes" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) type speaker struct { buffer *Buffer } func (s *speaker) Buffer() *Buffer { return s.buffer } var _ = Describe("SayMatcher", func() { var buffer *Buffer BeforeEach(func() { buff...
go
MIT
c715d868faa4799678792337e5f86725ceffd797
2026-01-07T09:45:51.510322Z
false