├── .gitignore
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── Makefile
├── README.md
├── apply
├── apply.go
├── common.go
├── execute.go
└── noop.go
├── ask
└── ask.go
├── changelog
├── config.go
├── formatter.go
├── goldmark_extensions.go
├── lint.go
├── new_entry.go
├── release.go
├── render.go
└── snippet.go
├── cmd
├── apply_manifest.go
├── apply_manifest_generate.go
├── bootstrap.go
├── changelog.go
├── checkout.go
├── dump_project.go
├── exec.go
├── git.go
├── github.go
├── graylog_version.go
├── idea.go
├── maven_parent.go
├── maven_property.go
├── npm.go
├── npm_clean.go
├── npm_version.go
├── project_changelog.go
├── regenerate.go
├── root.go
├── run.go
├── self_update.go
├── status.go
├── update.go
├── version.go
└── yarn.go
├── config
└── config.go
├── exec
└── exec.go
├── gh
├── app_token.go
├── github.go
├── github_test.go
├── pr_dependencies.go
└── pr_dependencies_test.go
├── git
├── git.go
├── utils.go
└── utils_test.go
├── go.mod
├── go.sum
├── idea
├── run_configs.go
├── run_configs_test.go
├── setup.go
└── testdata
│ └── .config
│ └── idea
│ ├── config.yml
│ └── templates
│ └── run-configurations
│ ├── data-node.env.template
│ ├── data-node.run.xml.template
│ ├── server.env.template
│ ├── server.run.xml.template
│ └── web.run.xml.template
├── jenkins.groovy
├── logger
├── loggable_error.go
└── logger.go
├── main.go
├── manifest
├── manifest.go
└── marshal.go
├── pom
└── pom.go
├── pomparse
└── pomparse.go
├── project
└── project.go
├── projectstate
└── sync.go
├── repo
└── repo.go
├── runner
├── runner.go
└── scripts.go
├── selfupdate
└── selfupdate.go
├── utils
├── github.go
├── github_test.go
├── maven.go
├── rename_test.go
├── rename_unix.go
├── rename_windows.go
├── utils.go
└── utils_test.go
├── vendor
├── dario.cat
│ └── mergo
│ │ ├── .deepsource.toml
│ │ ├── .gitignore
│ │ ├── .travis.yml
│ │ ├── CODE_OF_CONDUCT.md
│ │ ├── CONTRIBUTING.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── SECURITY.md
│ │ ├── doc.go
│ │ ├── map.go
│ │ ├── merge.go
│ │ └── mergo.go
├── github.com
│ ├── Masterminds
│ │ ├── goutils
│ │ │ ├── .travis.yml
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE.txt
│ │ │ ├── README.md
│ │ │ ├── appveyor.yml
│ │ │ ├── cryptorandomstringutils.go
│ │ │ ├── randomstringutils.go
│ │ │ ├── stringutils.go
│ │ │ └── wordutils.go
│ │ ├── semver
│ │ │ └── v3
│ │ │ │ ├── .gitignore
│ │ │ │ ├── .golangci.yml
│ │ │ │ ├── CHANGELOG.md
│ │ │ │ ├── LICENSE.txt
│ │ │ │ ├── Makefile
│ │ │ │ ├── README.md
│ │ │ │ ├── SECURITY.md
│ │ │ │ ├── collection.go
│ │ │ │ ├── constraints.go
│ │ │ │ ├── doc.go
│ │ │ │ └── version.go
│ │ └── sprig
│ │ │ └── v3
│ │ │ ├── .gitignore
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE.txt
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── crypto.go
│ │ │ ├── date.go
│ │ │ ├── defaults.go
│ │ │ ├── dict.go
│ │ │ ├── doc.go
│ │ │ ├── functions.go
│ │ │ ├── list.go
│ │ │ ├── network.go
│ │ │ ├── numeric.go
│ │ │ ├── reflect.go
│ │ │ ├── regex.go
│ │ │ ├── semver.go
│ │ │ ├── strings.go
│ │ │ └── url.go
│ ├── chzyer
│ │ └── readline
│ │ │ ├── .gitignore
│ │ │ ├── .travis.yml
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── ansi_windows.go
│ │ │ ├── complete.go
│ │ │ ├── complete_helper.go
│ │ │ ├── complete_segment.go
│ │ │ ├── history.go
│ │ │ ├── operation.go
│ │ │ ├── password.go
│ │ │ ├── rawreader_windows.go
│ │ │ ├── readline.go
│ │ │ ├── remote.go
│ │ │ ├── runebuf.go
│ │ │ ├── runes.go
│ │ │ ├── search.go
│ │ │ ├── std.go
│ │ │ ├── std_windows.go
│ │ │ ├── term.go
│ │ │ ├── term_bsd.go
│ │ │ ├── term_linux.go
│ │ │ ├── term_nosyscall6.go
│ │ │ ├── term_unix.go
│ │ │ ├── term_windows.go
│ │ │ ├── terminal.go
│ │ │ ├── utils.go
│ │ │ ├── utils_unix.go
│ │ │ ├── utils_windows.go
│ │ │ ├── vim.go
│ │ │ └── windows_api.go
│ ├── davecgh
│ │ └── go-spew
│ │ │ ├── LICENSE
│ │ │ └── spew
│ │ │ ├── bypass.go
│ │ │ ├── bypasssafe.go
│ │ │ ├── common.go
│ │ │ ├── config.go
│ │ │ ├── doc.go
│ │ │ ├── dump.go
│ │ │ ├── format.go
│ │ │ └── spew.go
│ ├── fatih
│ │ └── color
│ │ │ ├── LICENSE.md
│ │ │ ├── README.md
│ │ │ ├── color.go
│ │ │ ├── color_windows.go
│ │ │ └── doc.go
│ ├── fsnotify
│ │ └── fsnotify
│ │ │ ├── .cirrus.yml
│ │ │ ├── .gitignore
│ │ │ ├── .mailmap
│ │ │ ├── CHANGELOG.md
│ │ │ ├── CONTRIBUTING.md
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── backend_fen.go
│ │ │ ├── backend_inotify.go
│ │ │ ├── backend_kqueue.go
│ │ │ ├── backend_other.go
│ │ │ ├── backend_windows.go
│ │ │ ├── fsnotify.go
│ │ │ ├── internal
│ │ │ ├── darwin.go
│ │ │ ├── debug_darwin.go
│ │ │ ├── debug_dragonfly.go
│ │ │ ├── debug_freebsd.go
│ │ │ ├── debug_kqueue.go
│ │ │ ├── debug_linux.go
│ │ │ ├── debug_netbsd.go
│ │ │ ├── debug_openbsd.go
│ │ │ ├── debug_solaris.go
│ │ │ ├── debug_windows.go
│ │ │ ├── freebsd.go
│ │ │ ├── internal.go
│ │ │ ├── unix.go
│ │ │ ├── unix2.go
│ │ │ └── windows.go
│ │ │ ├── system_bsd.go
│ │ │ └── system_darwin.go
│ ├── golang-jwt
│ │ └── jwt
│ │ │ └── v5
│ │ │ ├── .gitignore
│ │ │ ├── LICENSE
│ │ │ ├── MIGRATION_GUIDE.md
│ │ │ ├── README.md
│ │ │ ├── SECURITY.md
│ │ │ ├── VERSION_HISTORY.md
│ │ │ ├── claims.go
│ │ │ ├── doc.go
│ │ │ ├── ecdsa.go
│ │ │ ├── ecdsa_utils.go
│ │ │ ├── ed25519.go
│ │ │ ├── ed25519_utils.go
│ │ │ ├── errors.go
│ │ │ ├── errors_go1_20.go
│ │ │ ├── errors_go_other.go
│ │ │ ├── hmac.go
│ │ │ ├── map_claims.go
│ │ │ ├── none.go
│ │ │ ├── parser.go
│ │ │ ├── parser_option.go
│ │ │ ├── registered_claims.go
│ │ │ ├── rsa.go
│ │ │ ├── rsa_pss.go
│ │ │ ├── rsa_utils.go
│ │ │ ├── signing_method.go
│ │ │ ├── staticcheck.conf
│ │ │ ├── token.go
│ │ │ ├── token_option.go
│ │ │ ├── types.go
│ │ │ └── validator.go
│ ├── google
│ │ ├── go-github
│ │ │ └── v66
│ │ │ │ ├── AUTHORS
│ │ │ │ ├── LICENSE
│ │ │ │ └── github
│ │ │ │ ├── actions.go
│ │ │ │ ├── actions_artifacts.go
│ │ │ │ ├── actions_cache.go
│ │ │ │ ├── actions_oidc.go
│ │ │ │ ├── actions_permissions_enterprise.go
│ │ │ │ ├── actions_permissions_orgs.go
│ │ │ │ ├── actions_required_workflows.go
│ │ │ │ ├── actions_runner_groups.go
│ │ │ │ ├── actions_runners.go
│ │ │ │ ├── actions_secrets.go
│ │ │ │ ├── actions_variables.go
│ │ │ │ ├── actions_workflow_jobs.go
│ │ │ │ ├── actions_workflow_runs.go
│ │ │ │ ├── actions_workflows.go
│ │ │ │ ├── activity.go
│ │ │ │ ├── activity_events.go
│ │ │ │ ├── activity_notifications.go
│ │ │ │ ├── activity_star.go
│ │ │ │ ├── activity_watching.go
│ │ │ │ ├── admin.go
│ │ │ │ ├── admin_orgs.go
│ │ │ │ ├── admin_stats.go
│ │ │ │ ├── admin_users.go
│ │ │ │ ├── apps.go
│ │ │ │ ├── apps_hooks.go
│ │ │ │ ├── apps_hooks_deliveries.go
│ │ │ │ ├── apps_installation.go
│ │ │ │ ├── apps_manifest.go
│ │ │ │ ├── apps_marketplace.go
│ │ │ │ ├── authorizations.go
│ │ │ │ ├── billing.go
│ │ │ │ ├── checks.go
│ │ │ │ ├── code-scanning.go
│ │ │ │ ├── codesofconduct.go
│ │ │ │ ├── codespaces.go
│ │ │ │ ├── codespaces_secrets.go
│ │ │ │ ├── copilot.go
│ │ │ │ ├── dependabot.go
│ │ │ │ ├── dependabot_alerts.go
│ │ │ │ ├── dependabot_secrets.go
│ │ │ │ ├── dependency_graph.go
│ │ │ │ ├── dependency_graph_snapshots.go
│ │ │ │ ├── doc.go
│ │ │ │ ├── emojis.go
│ │ │ │ ├── enterprise.go
│ │ │ │ ├── enterprise_actions_runner_groups.go
│ │ │ │ ├── enterprise_actions_runners.go
│ │ │ │ ├── enterprise_audit_log.go
│ │ │ │ ├── enterprise_code_security_and_analysis.go
│ │ │ │ ├── event.go
│ │ │ │ ├── event_types.go
│ │ │ │ ├── gists.go
│ │ │ │ ├── gists_comments.go
│ │ │ │ ├── git.go
│ │ │ │ ├── git_blobs.go
│ │ │ │ ├── git_commits.go
│ │ │ │ ├── git_refs.go
│ │ │ │ ├── git_tags.go
│ │ │ │ ├── git_trees.go
│ │ │ │ ├── github-accessors.go
│ │ │ │ ├── github.go
│ │ │ │ ├── gitignore.go
│ │ │ │ ├── interactions.go
│ │ │ │ ├── interactions_orgs.go
│ │ │ │ ├── interactions_repos.go
│ │ │ │ ├── issue_import.go
│ │ │ │ ├── issues.go
│ │ │ │ ├── issues_assignees.go
│ │ │ │ ├── issues_comments.go
│ │ │ │ ├── issues_events.go
│ │ │ │ ├── issues_labels.go
│ │ │ │ ├── issues_milestones.go
│ │ │ │ ├── issues_timeline.go
│ │ │ │ ├── licenses.go
│ │ │ │ ├── markdown.go
│ │ │ │ ├── messages.go
│ │ │ │ ├── meta.go
│ │ │ │ ├── migrations.go
│ │ │ │ ├── migrations_source_import.go
│ │ │ │ ├── migrations_user.go
│ │ │ │ ├── orgs.go
│ │ │ │ ├── orgs_actions_allowed.go
│ │ │ │ ├── orgs_actions_permissions.go
│ │ │ │ ├── orgs_audit_log.go
│ │ │ │ ├── orgs_credential_authorizations.go
│ │ │ │ ├── orgs_custom_repository_roles.go
│ │ │ │ ├── orgs_hooks.go
│ │ │ │ ├── orgs_hooks_configuration.go
│ │ │ │ ├── orgs_hooks_deliveries.go
│ │ │ │ ├── orgs_members.go
│ │ │ │ ├── orgs_organization_roles.go
│ │ │ │ ├── orgs_outside_collaborators.go
│ │ │ │ ├── orgs_packages.go
│ │ │ │ ├── orgs_personal_access_tokens.go
│ │ │ │ ├── orgs_projects.go
│ │ │ │ ├── orgs_properties.go
│ │ │ │ ├── orgs_rules.go
│ │ │ │ ├── orgs_security_managers.go
│ │ │ │ ├── orgs_users_blocking.go
│ │ │ │ ├── packages.go
│ │ │ │ ├── projects.go
│ │ │ │ ├── pulls.go
│ │ │ │ ├── pulls_comments.go
│ │ │ │ ├── pulls_reviewers.go
│ │ │ │ ├── pulls_reviews.go
│ │ │ │ ├── pulls_threads.go
│ │ │ │ ├── rate_limit.go
│ │ │ │ ├── reactions.go
│ │ │ │ ├── repos.go
│ │ │ │ ├── repos_actions_access.go
│ │ │ │ ├── repos_actions_allowed.go
│ │ │ │ ├── repos_actions_permissions.go
│ │ │ │ ├── repos_autolinks.go
│ │ │ │ ├── repos_codeowners.go
│ │ │ │ ├── repos_collaborators.go
│ │ │ │ ├── repos_comments.go
│ │ │ │ ├── repos_commits.go
│ │ │ │ ├── repos_community_health.go
│ │ │ │ ├── repos_contents.go
│ │ │ │ ├── repos_deployment_branch_policies.go
│ │ │ │ ├── repos_deployment_protection_rules.go
│ │ │ │ ├── repos_deployments.go
│ │ │ │ ├── repos_environments.go
│ │ │ │ ├── repos_forks.go
│ │ │ │ ├── repos_hooks.go
│ │ │ │ ├── repos_hooks_configuration.go
│ │ │ │ ├── repos_hooks_deliveries.go
│ │ │ │ ├── repos_invitations.go
│ │ │ │ ├── repos_keys.go
│ │ │ │ ├── repos_lfs.go
│ │ │ │ ├── repos_merging.go
│ │ │ │ ├── repos_pages.go
│ │ │ │ ├── repos_prereceive_hooks.go
│ │ │ │ ├── repos_projects.go
│ │ │ │ ├── repos_properties.go
│ │ │ │ ├── repos_releases.go
│ │ │ │ ├── repos_rules.go
│ │ │ │ ├── repos_stats.go
│ │ │ │ ├── repos_statuses.go
│ │ │ │ ├── repos_tags.go
│ │ │ │ ├── repos_traffic.go
│ │ │ │ ├── scim.go
│ │ │ │ ├── search.go
│ │ │ │ ├── secret_scanning.go
│ │ │ │ ├── security_advisories.go
│ │ │ │ ├── strings.go
│ │ │ │ ├── teams.go
│ │ │ │ ├── teams_discussion_comments.go
│ │ │ │ ├── teams_discussions.go
│ │ │ │ ├── teams_members.go
│ │ │ │ ├── timestamp.go
│ │ │ │ ├── users.go
│ │ │ │ ├── users_administration.go
│ │ │ │ ├── users_blocking.go
│ │ │ │ ├── users_emails.go
│ │ │ │ ├── users_followers.go
│ │ │ │ ├── users_gpg_keys.go
│ │ │ │ ├── users_keys.go
│ │ │ │ ├── users_packages.go
│ │ │ │ ├── users_projects.go
│ │ │ │ ├── users_ssh_signing_keys.go
│ │ │ │ ├── with_appengine.go
│ │ │ │ └── without_appengine.go
│ │ ├── go-querystring
│ │ │ ├── LICENSE
│ │ │ └── query
│ │ │ │ └── encode.go
│ │ ├── renameio
│ │ │ └── v2
│ │ │ │ ├── .golangci.yml
│ │ │ │ ├── CONTRIBUTING.md
│ │ │ │ ├── LICENSE
│ │ │ │ ├── README.md
│ │ │ │ ├── doc.go
│ │ │ │ ├── option.go
│ │ │ │ ├── tempfile.go
│ │ │ │ └── writefile.go
│ │ └── uuid
│ │ │ ├── CHANGELOG.md
│ │ │ ├── CONTRIBUTING.md
│ │ │ ├── CONTRIBUTORS
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── dce.go
│ │ │ ├── doc.go
│ │ │ ├── hash.go
│ │ │ ├── marshal.go
│ │ │ ├── node.go
│ │ │ ├── node_js.go
│ │ │ ├── node_net.go
│ │ │ ├── null.go
│ │ │ ├── sql.go
│ │ │ ├── time.go
│ │ │ ├── util.go
│ │ │ ├── uuid.go
│ │ │ ├── version1.go
│ │ │ ├── version4.go
│ │ │ ├── version6.go
│ │ │ └── version7.go
│ ├── hashicorp
│ │ ├── go-version
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── constraint.go
│ │ │ ├── version.go
│ │ │ └── version_collection.go
│ │ └── hcl
│ │ │ ├── .gitignore
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── appveyor.yml
│ │ │ ├── decoder.go
│ │ │ ├── hcl.go
│ │ │ ├── hcl
│ │ │ ├── ast
│ │ │ │ ├── ast.go
│ │ │ │ └── walk.go
│ │ │ ├── parser
│ │ │ │ ├── error.go
│ │ │ │ └── parser.go
│ │ │ ├── printer
│ │ │ │ ├── nodes.go
│ │ │ │ └── printer.go
│ │ │ ├── scanner
│ │ │ │ └── scanner.go
│ │ │ ├── strconv
│ │ │ │ └── quote.go
│ │ │ └── token
│ │ │ │ ├── position.go
│ │ │ │ └── token.go
│ │ │ ├── json
│ │ │ ├── parser
│ │ │ │ ├── flatten.go
│ │ │ │ └── parser.go
│ │ │ ├── scanner
│ │ │ │ └── scanner.go
│ │ │ └── token
│ │ │ │ ├── position.go
│ │ │ │ └── token.go
│ │ │ ├── lex.go
│ │ │ └── parse.go
│ ├── huandu
│ │ └── xstrings
│ │ │ ├── .gitignore
│ │ │ ├── CONTRIBUTING.md
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── common.go
│ │ │ ├── convert.go
│ │ │ ├── count.go
│ │ │ ├── doc.go
│ │ │ ├── format.go
│ │ │ ├── manipulate.go
│ │ │ ├── stringbuilder.go
│ │ │ ├── stringbuilder_go110.go
│ │ │ └── translate.go
│ ├── imdario
│ │ └── mergo
│ │ │ ├── .deepsource.toml
│ │ │ ├── .gitignore
│ │ │ ├── .travis.yml
│ │ │ ├── CODE_OF_CONDUCT.md
│ │ │ ├── CONTRIBUTING.md
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── SECURITY.md
│ │ │ ├── doc.go
│ │ │ ├── map.go
│ │ │ ├── merge.go
│ │ │ └── mergo.go
│ ├── inconshreveable
│ │ └── mousetrap
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── trap_others.go
│ │ │ └── trap_windows.go
│ ├── k0kubun
│ │ └── pp
│ │ │ └── v3
│ │ │ ├── .github_changelog_generator
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE.txt
│ │ │ ├── README.md
│ │ │ ├── color.go
│ │ │ ├── pp.go
│ │ │ ├── printer.go
│ │ │ └── sort.go
│ ├── magiconair
│ │ └── properties
│ │ │ ├── .gitignore
│ │ │ ├── LICENSE.md
│ │ │ ├── README.md
│ │ │ ├── decode.go
│ │ │ ├── doc.go
│ │ │ ├── integrate.go
│ │ │ ├── lex.go
│ │ │ ├── load.go
│ │ │ ├── parser.go
│ │ │ ├── properties.go
│ │ │ └── rangecheck.go
│ ├── manifoldco
│ │ └── promptui
│ │ │ ├── .gitignore
│ │ │ ├── .golangci.yml
│ │ │ ├── .travis.yml
│ │ │ ├── CHANGELOG.md
│ │ │ ├── CODE_OF_CONDUCT.md
│ │ │ ├── LICENSE.md
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── codes.go
│ │ │ ├── cursor.go
│ │ │ ├── keycodes.go
│ │ │ ├── keycodes_other.go
│ │ │ ├── keycodes_windows.go
│ │ │ ├── list
│ │ │ └── list.go
│ │ │ ├── prompt.go
│ │ │ ├── promptui.go
│ │ │ ├── screenbuf
│ │ │ └── screenbuf.go
│ │ │ ├── select.go
│ │ │ ├── styles.go
│ │ │ └── styles_windows.go
│ ├── mattn
│ │ ├── go-colorable
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── colorable_others.go
│ │ │ ├── colorable_windows.go
│ │ │ ├── go.test.sh
│ │ │ └── noncolorable.go
│ │ └── go-isatty
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── doc.go
│ │ │ ├── go.test.sh
│ │ │ ├── isatty_bsd.go
│ │ │ ├── isatty_others.go
│ │ │ ├── isatty_plan9.go
│ │ │ ├── isatty_solaris.go
│ │ │ ├── isatty_tcgets.go
│ │ │ └── isatty_windows.go
│ ├── mitchellh
│ │ ├── colorstring
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ └── colorstring.go
│ │ ├── copystructure
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── copier_time.go
│ │ │ └── copystructure.go
│ │ ├── mapstructure
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── decode_hooks.go
│ │ │ ├── error.go
│ │ │ └── mapstructure.go
│ │ └── reflectwalk
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── location.go
│ │ │ ├── location_string.go
│ │ │ └── reflectwalk.go
│ ├── pelletier
│ │ └── go-toml
│ │ │ └── v2
│ │ │ ├── .dockerignore
│ │ │ ├── .gitattributes
│ │ │ ├── .gitignore
│ │ │ ├── .golangci.toml
│ │ │ ├── .goreleaser.yaml
│ │ │ ├── CONTRIBUTING.md
│ │ │ ├── Dockerfile
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── SECURITY.md
│ │ │ ├── ci.sh
│ │ │ ├── decode.go
│ │ │ ├── doc.go
│ │ │ ├── errors.go
│ │ │ ├── internal
│ │ │ ├── characters
│ │ │ │ ├── ascii.go
│ │ │ │ └── utf8.go
│ │ │ ├── danger
│ │ │ │ ├── danger.go
│ │ │ │ └── typeid.go
│ │ │ └── tracker
│ │ │ │ ├── key.go
│ │ │ │ ├── seen.go
│ │ │ │ └── tracker.go
│ │ │ ├── localtime.go
│ │ │ ├── marshaler.go
│ │ │ ├── strict.go
│ │ │ ├── toml.abnf
│ │ │ ├── types.go
│ │ │ ├── unmarshaler.go
│ │ │ └── unstable
│ │ │ ├── ast.go
│ │ │ ├── builder.go
│ │ │ ├── doc.go
│ │ │ ├── kind.go
│ │ │ ├── parser.go
│ │ │ ├── scanner.go
│ │ │ └── unmarshaler.go
│ ├── pkg
│ │ └── errors
│ │ │ ├── .gitignore
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── appveyor.yml
│ │ │ ├── errors.go
│ │ │ ├── go113.go
│ │ │ └── stack.go
│ ├── pmezard
│ │ └── go-difflib
│ │ │ ├── LICENSE
│ │ │ └── difflib
│ │ │ └── difflib.go
│ ├── rivo
│ │ └── uniseg
│ │ │ ├── LICENSE.txt
│ │ │ ├── README.md
│ │ │ ├── doc.go
│ │ │ ├── eastasianwidth.go
│ │ │ ├── emojipresentation.go
│ │ │ ├── gen_breaktest.go
│ │ │ ├── gen_properties.go
│ │ │ ├── grapheme.go
│ │ │ ├── graphemeproperties.go
│ │ │ ├── graphemerules.go
│ │ │ ├── line.go
│ │ │ ├── lineproperties.go
│ │ │ ├── linerules.go
│ │ │ ├── properties.go
│ │ │ ├── sentence.go
│ │ │ ├── sentenceproperties.go
│ │ │ ├── sentencerules.go
│ │ │ ├── step.go
│ │ │ ├── width.go
│ │ │ ├── word.go
│ │ │ ├── wordproperties.go
│ │ │ └── wordrules.go
│ ├── sagikazarmark
│ │ ├── locafero
│ │ │ ├── .editorconfig
│ │ │ ├── .envrc
│ │ │ ├── .gitignore
│ │ │ ├── .golangci.yaml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── file_type.go
│ │ │ ├── finder.go
│ │ │ ├── flake.lock
│ │ │ ├── flake.nix
│ │ │ ├── glob.go
│ │ │ ├── glob_windows.go
│ │ │ ├── helpers.go
│ │ │ └── justfile
│ │ └── slog-shim
│ │ │ ├── .editorconfig
│ │ │ ├── .envrc
│ │ │ ├── .gitignore
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── attr.go
│ │ │ ├── attr_120.go
│ │ │ ├── flake.lock
│ │ │ ├── flake.nix
│ │ │ ├── handler.go
│ │ │ ├── handler_120.go
│ │ │ ├── json_handler.go
│ │ │ ├── json_handler_120.go
│ │ │ ├── level.go
│ │ │ ├── level_120.go
│ │ │ ├── logger.go
│ │ │ ├── logger_120.go
│ │ │ ├── record.go
│ │ │ ├── record_120.go
│ │ │ ├── text_handler.go
│ │ │ ├── text_handler_120.go
│ │ │ ├── value.go
│ │ │ └── value_120.go
│ ├── samber
│ │ └── lo
│ │ │ ├── .gitignore
│ │ │ ├── Dockerfile
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── channel.go
│ │ │ ├── concurrency.go
│ │ │ ├── condition.go
│ │ │ ├── constraints.go
│ │ │ ├── errors.go
│ │ │ ├── find.go
│ │ │ ├── func.go
│ │ │ ├── internal
│ │ │ ├── constraints
│ │ │ │ ├── constraints.go
│ │ │ │ ├── ordered_go118.go
│ │ │ │ └── ordered_go121.go
│ │ │ └── rand
│ │ │ │ ├── ordered_go118.go
│ │ │ │ └── ordered_go122.go
│ │ │ ├── intersect.go
│ │ │ ├── map.go
│ │ │ ├── math.go
│ │ │ ├── mutable
│ │ │ └── slice.go
│ │ │ ├── retry.go
│ │ │ ├── slice.go
│ │ │ ├── string.go
│ │ │ ├── time.go
│ │ │ ├── tuples.go
│ │ │ ├── type_manipulation.go
│ │ │ └── types.go
│ ├── schollz
│ │ └── progressbar
│ │ │ └── v3
│ │ │ ├── .gitignore
│ │ │ ├── .golangci.yml
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── progressbar.go
│ │ │ └── spinners.go
│ ├── shopspring
│ │ └── decimal
│ │ │ ├── .gitignore
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── const.go
│ │ │ ├── decimal-go.go
│ │ │ ├── decimal.go
│ │ │ └── rounding.go
│ ├── sourcegraph
│ │ └── conc
│ │ │ ├── .golangci.yml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── internal
│ │ │ └── multierror
│ │ │ │ ├── multierror_go119.go
│ │ │ │ └── multierror_go120.go
│ │ │ ├── iter
│ │ │ ├── iter.go
│ │ │ └── map.go
│ │ │ ├── panics
│ │ │ ├── panics.go
│ │ │ └── try.go
│ │ │ └── waitgroup.go
│ ├── spf13
│ │ ├── afero
│ │ │ ├── .editorconfig
│ │ │ ├── .gitignore
│ │ │ ├── .golangci.yaml
│ │ │ ├── LICENSE.txt
│ │ │ ├── README.md
│ │ │ ├── afero.go
│ │ │ ├── appveyor.yml
│ │ │ ├── basepath.go
│ │ │ ├── cacheOnReadFs.go
│ │ │ ├── const_bsds.go
│ │ │ ├── const_win_unix.go
│ │ │ ├── copyOnWriteFs.go
│ │ │ ├── httpFs.go
│ │ │ ├── internal
│ │ │ │ └── common
│ │ │ │ │ └── adapters.go
│ │ │ ├── iofs.go
│ │ │ ├── ioutil.go
│ │ │ ├── lstater.go
│ │ │ ├── match.go
│ │ │ ├── mem
│ │ │ │ ├── dir.go
│ │ │ │ ├── dirmap.go
│ │ │ │ └── file.go
│ │ │ ├── memmap.go
│ │ │ ├── os.go
│ │ │ ├── path.go
│ │ │ ├── readonlyfs.go
│ │ │ ├── regexpfs.go
│ │ │ ├── symlink.go
│ │ │ ├── unionFile.go
│ │ │ └── util.go
│ │ ├── cast
│ │ │ ├── .gitignore
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── cast.go
│ │ │ ├── caste.go
│ │ │ └── timeformattype_string.go
│ │ ├── cobra
│ │ │ ├── .gitignore
│ │ │ ├── .golangci.yml
│ │ │ ├── .mailmap
│ │ │ ├── CONDUCT.md
│ │ │ ├── CONTRIBUTING.md
│ │ │ ├── LICENSE.txt
│ │ │ ├── MAINTAINERS
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── active_help.go
│ │ │ ├── args.go
│ │ │ ├── bash_completions.go
│ │ │ ├── bash_completionsV2.go
│ │ │ ├── cobra.go
│ │ │ ├── command.go
│ │ │ ├── command_notwin.go
│ │ │ ├── command_win.go
│ │ │ ├── completions.go
│ │ │ ├── fish_completions.go
│ │ │ ├── flag_groups.go
│ │ │ ├── powershell_completions.go
│ │ │ ├── shell_completions.go
│ │ │ └── zsh_completions.go
│ │ ├── pflag
│ │ │ ├── .editorconfig
│ │ │ ├── .gitignore
│ │ │ ├── .golangci.yaml
│ │ │ ├── .travis.yml
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── bool.go
│ │ │ ├── bool_slice.go
│ │ │ ├── bytes.go
│ │ │ ├── count.go
│ │ │ ├── duration.go
│ │ │ ├── duration_slice.go
│ │ │ ├── flag.go
│ │ │ ├── float32.go
│ │ │ ├── float32_slice.go
│ │ │ ├── float64.go
│ │ │ ├── float64_slice.go
│ │ │ ├── golangflag.go
│ │ │ ├── int.go
│ │ │ ├── int16.go
│ │ │ ├── int32.go
│ │ │ ├── int32_slice.go
│ │ │ ├── int64.go
│ │ │ ├── int64_slice.go
│ │ │ ├── int8.go
│ │ │ ├── int_slice.go
│ │ │ ├── ip.go
│ │ │ ├── ip_slice.go
│ │ │ ├── ipmask.go
│ │ │ ├── ipnet.go
│ │ │ ├── ipnet_slice.go
│ │ │ ├── string.go
│ │ │ ├── string_array.go
│ │ │ ├── string_slice.go
│ │ │ ├── string_to_int.go
│ │ │ ├── string_to_int64.go
│ │ │ ├── string_to_string.go
│ │ │ ├── uint.go
│ │ │ ├── uint16.go
│ │ │ ├── uint32.go
│ │ │ ├── uint64.go
│ │ │ ├── uint8.go
│ │ │ └── uint_slice.go
│ │ └── viper
│ │ │ ├── .editorconfig
│ │ │ ├── .envrc
│ │ │ ├── .gitignore
│ │ │ ├── .golangci.yaml
│ │ │ ├── .yamlignore
│ │ │ ├── .yamllint.yaml
│ │ │ ├── LICENSE
│ │ │ ├── Makefile
│ │ │ ├── README.md
│ │ │ ├── TROUBLESHOOTING.md
│ │ │ ├── file.go
│ │ │ ├── file_finder.go
│ │ │ ├── flags.go
│ │ │ ├── flake.lock
│ │ │ ├── flake.nix
│ │ │ ├── internal
│ │ │ ├── encoding
│ │ │ │ ├── decoder.go
│ │ │ │ ├── dotenv
│ │ │ │ │ ├── codec.go
│ │ │ │ │ └── map_utils.go
│ │ │ │ ├── encoder.go
│ │ │ │ ├── error.go
│ │ │ │ ├── hcl
│ │ │ │ │ └── codec.go
│ │ │ │ ├── ini
│ │ │ │ │ ├── codec.go
│ │ │ │ │ └── map_utils.go
│ │ │ │ ├── javaproperties
│ │ │ │ │ ├── codec.go
│ │ │ │ │ └── map_utils.go
│ │ │ │ ├── json
│ │ │ │ │ └── codec.go
│ │ │ │ ├── toml
│ │ │ │ │ └── codec.go
│ │ │ │ └── yaml
│ │ │ │ │ └── codec.go
│ │ │ └── features
│ │ │ │ ├── bind_struct.go
│ │ │ │ └── bind_struct_default.go
│ │ │ ├── logger.go
│ │ │ ├── util.go
│ │ │ └── viper.go
│ ├── stretchr
│ │ └── testify
│ │ │ ├── LICENSE
│ │ │ ├── assert
│ │ │ ├── assertion_compare.go
│ │ │ ├── assertion_format.go
│ │ │ ├── assertion_format.go.tmpl
│ │ │ ├── assertion_forward.go
│ │ │ ├── assertion_forward.go.tmpl
│ │ │ ├── assertion_order.go
│ │ │ ├── assertions.go
│ │ │ ├── doc.go
│ │ │ ├── errors.go
│ │ │ ├── forward_assertions.go
│ │ │ ├── http_assertions.go
│ │ │ └── yaml
│ │ │ │ ├── yaml_custom.go
│ │ │ │ ├── yaml_default.go
│ │ │ │ └── yaml_fail.go
│ │ │ └── require
│ │ │ ├── doc.go
│ │ │ ├── forward_requirements.go
│ │ │ ├── require.go
│ │ │ ├── require.go.tmpl
│ │ │ ├── require_forward.go
│ │ │ ├── require_forward.go.tmpl
│ │ │ └── requirements.go
│ ├── subosito
│ │ └── gotenv
│ │ │ ├── .env
│ │ │ ├── .env.invalid
│ │ │ ├── .gitignore
│ │ │ ├── .golangci.yaml
│ │ │ ├── CHANGELOG.md
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ └── gotenv.go
│ └── yuin
│ │ └── goldmark
│ │ ├── .gitignore
│ │ ├── .golangci.yml
│ │ ├── LICENSE
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── ast
│ │ ├── ast.go
│ │ ├── block.go
│ │ └── inline.go
│ │ ├── extension
│ │ ├── ast
│ │ │ ├── definition_list.go
│ │ │ ├── footnote.go
│ │ │ ├── strikethrough.go
│ │ │ ├── table.go
│ │ │ └── tasklist.go
│ │ ├── cjk.go
│ │ ├── definition_list.go
│ │ ├── footnote.go
│ │ ├── gfm.go
│ │ ├── linkify.go
│ │ ├── package.go
│ │ ├── strikethrough.go
│ │ ├── table.go
│ │ ├── tasklist.go
│ │ └── typographer.go
│ │ ├── markdown.go
│ │ ├── parser
│ │ ├── attribute.go
│ │ ├── atx_heading.go
│ │ ├── auto_link.go
│ │ ├── blockquote.go
│ │ ├── code_block.go
│ │ ├── code_span.go
│ │ ├── delimiter.go
│ │ ├── emphasis.go
│ │ ├── fcode_block.go
│ │ ├── html_block.go
│ │ ├── link.go
│ │ ├── link_ref.go
│ │ ├── list.go
│ │ ├── list_item.go
│ │ ├── paragraph.go
│ │ ├── parser.go
│ │ ├── raw_html.go
│ │ ├── setext_headings.go
│ │ └── thematic_break.go
│ │ ├── renderer
│ │ ├── html
│ │ │ └── html.go
│ │ └── renderer.go
│ │ ├── text
│ │ ├── package.go
│ │ ├── reader.go
│ │ └── segment.go
│ │ └── util
│ │ ├── html5entities.go
│ │ ├── unicode_case_folding.go
│ │ ├── util.go
│ │ ├── util_cjk.go
│ │ ├── util_safe.go
│ │ ├── util_unsafe_go120.go
│ │ └── util_unsafe_go121.go
├── go.uber.org
│ └── multierr
│ │ ├── .codecov.yml
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE.txt
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── error.go
│ │ ├── error_post_go120.go
│ │ └── error_pre_go120.go
├── golang.org
│ └── x
│ │ ├── crypto
│ │ ├── LICENSE
│ │ ├── PATENTS
│ │ ├── bcrypt
│ │ │ ├── base64.go
│ │ │ └── bcrypt.go
│ │ ├── blowfish
│ │ │ ├── block.go
│ │ │ ├── cipher.go
│ │ │ └── const.go
│ │ ├── pbkdf2
│ │ │ └── pbkdf2.go
│ │ └── scrypt
│ │ │ └── scrypt.go
│ │ ├── exp
│ │ ├── LICENSE
│ │ ├── PATENTS
│ │ ├── slices
│ │ │ ├── slices.go
│ │ │ └── sort.go
│ │ └── slog
│ │ │ ├── attr.go
│ │ │ ├── doc.go
│ │ │ ├── handler.go
│ │ │ ├── internal
│ │ │ ├── buffer
│ │ │ │ └── buffer.go
│ │ │ └── ignorepc.go
│ │ │ ├── json_handler.go
│ │ │ ├── level.go
│ │ │ ├── logger.go
│ │ │ ├── noplog.bench
│ │ │ ├── record.go
│ │ │ ├── text_handler.go
│ │ │ ├── value.go
│ │ │ ├── value_119.go
│ │ │ └── value_120.go
│ │ ├── oauth2
│ │ ├── .travis.yml
│ │ ├── CONTRIBUTING.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── deviceauth.go
│ │ ├── internal
│ │ │ ├── doc.go
│ │ │ ├── oauth2.go
│ │ │ ├── token.go
│ │ │ └── transport.go
│ │ ├── oauth2.go
│ │ ├── pkce.go
│ │ ├── token.go
│ │ └── transport.go
│ │ ├── sys
│ │ ├── LICENSE
│ │ ├── PATENTS
│ │ ├── plan9
│ │ │ ├── asm.s
│ │ │ ├── asm_plan9_386.s
│ │ │ ├── asm_plan9_amd64.s
│ │ │ ├── asm_plan9_arm.s
│ │ │ ├── const_plan9.go
│ │ │ ├── dir_plan9.go
│ │ │ ├── env_plan9.go
│ │ │ ├── errors_plan9.go
│ │ │ ├── mkall.sh
│ │ │ ├── mkerrors.sh
│ │ │ ├── mksysnum_plan9.sh
│ │ │ ├── pwd_go15_plan9.go
│ │ │ ├── pwd_plan9.go
│ │ │ ├── race.go
│ │ │ ├── race0.go
│ │ │ ├── str.go
│ │ │ ├── syscall.go
│ │ │ ├── syscall_plan9.go
│ │ │ ├── zsyscall_plan9_386.go
│ │ │ ├── zsyscall_plan9_amd64.go
│ │ │ ├── zsyscall_plan9_arm.go
│ │ │ └── zsysnum_plan9.go
│ │ ├── unix
│ │ │ ├── .gitignore
│ │ │ ├── README.md
│ │ │ ├── affinity_linux.go
│ │ │ ├── aliases.go
│ │ │ ├── asm_aix_ppc64.s
│ │ │ ├── asm_bsd_386.s
│ │ │ ├── asm_bsd_amd64.s
│ │ │ ├── asm_bsd_arm.s
│ │ │ ├── asm_bsd_arm64.s
│ │ │ ├── asm_bsd_ppc64.s
│ │ │ ├── asm_bsd_riscv64.s
│ │ │ ├── asm_linux_386.s
│ │ │ ├── asm_linux_amd64.s
│ │ │ ├── asm_linux_arm.s
│ │ │ ├── asm_linux_arm64.s
│ │ │ ├── asm_linux_loong64.s
│ │ │ ├── asm_linux_mips64x.s
│ │ │ ├── asm_linux_mipsx.s
│ │ │ ├── asm_linux_ppc64x.s
│ │ │ ├── asm_linux_riscv64.s
│ │ │ ├── asm_linux_s390x.s
│ │ │ ├── asm_openbsd_mips64.s
│ │ │ ├── asm_solaris_amd64.s
│ │ │ ├── asm_zos_s390x.s
│ │ │ ├── auxv.go
│ │ │ ├── auxv_unsupported.go
│ │ │ ├── bluetooth_linux.go
│ │ │ ├── bpxsvc_zos.go
│ │ │ ├── bpxsvc_zos.s
│ │ │ ├── cap_freebsd.go
│ │ │ ├── constants.go
│ │ │ ├── dev_aix_ppc.go
│ │ │ ├── dev_aix_ppc64.go
│ │ │ ├── dev_darwin.go
│ │ │ ├── dev_dragonfly.go
│ │ │ ├── dev_freebsd.go
│ │ │ ├── dev_linux.go
│ │ │ ├── dev_netbsd.go
│ │ │ ├── dev_openbsd.go
│ │ │ ├── dev_zos.go
│ │ │ ├── dirent.go
│ │ │ ├── endian_big.go
│ │ │ ├── endian_little.go
│ │ │ ├── env_unix.go
│ │ │ ├── fcntl.go
│ │ │ ├── fcntl_darwin.go
│ │ │ ├── fcntl_linux_32bit.go
│ │ │ ├── fdset.go
│ │ │ ├── gccgo.go
│ │ │ ├── gccgo_c.c
│ │ │ ├── gccgo_linux_amd64.go
│ │ │ ├── ifreq_linux.go
│ │ │ ├── ioctl_linux.go
│ │ │ ├── ioctl_signed.go
│ │ │ ├── ioctl_unsigned.go
│ │ │ ├── ioctl_zos.go
│ │ │ ├── mkall.sh
│ │ │ ├── mkerrors.sh
│ │ │ ├── mmap_nomremap.go
│ │ │ ├── mremap.go
│ │ │ ├── pagesize_unix.go
│ │ │ ├── pledge_openbsd.go
│ │ │ ├── ptrace_darwin.go
│ │ │ ├── ptrace_ios.go
│ │ │ ├── race.go
│ │ │ ├── race0.go
│ │ │ ├── readdirent_getdents.go
│ │ │ ├── readdirent_getdirentries.go
│ │ │ ├── sockcmsg_dragonfly.go
│ │ │ ├── sockcmsg_linux.go
│ │ │ ├── sockcmsg_unix.go
│ │ │ ├── sockcmsg_unix_other.go
│ │ │ ├── sockcmsg_zos.go
│ │ │ ├── symaddr_zos_s390x.s
│ │ │ ├── syscall.go
│ │ │ ├── syscall_aix.go
│ │ │ ├── syscall_aix_ppc.go
│ │ │ ├── syscall_aix_ppc64.go
│ │ │ ├── syscall_bsd.go
│ │ │ ├── syscall_darwin.go
│ │ │ ├── syscall_darwin_amd64.go
│ │ │ ├── syscall_darwin_arm64.go
│ │ │ ├── syscall_darwin_libSystem.go
│ │ │ ├── syscall_dragonfly.go
│ │ │ ├── syscall_dragonfly_amd64.go
│ │ │ ├── syscall_freebsd.go
│ │ │ ├── syscall_freebsd_386.go
│ │ │ ├── syscall_freebsd_amd64.go
│ │ │ ├── syscall_freebsd_arm.go
│ │ │ ├── syscall_freebsd_arm64.go
│ │ │ ├── syscall_freebsd_riscv64.go
│ │ │ ├── syscall_hurd.go
│ │ │ ├── syscall_hurd_386.go
│ │ │ ├── syscall_illumos.go
│ │ │ ├── syscall_linux.go
│ │ │ ├── syscall_linux_386.go
│ │ │ ├── syscall_linux_alarm.go
│ │ │ ├── syscall_linux_amd64.go
│ │ │ ├── syscall_linux_amd64_gc.go
│ │ │ ├── syscall_linux_arm.go
│ │ │ ├── syscall_linux_arm64.go
│ │ │ ├── syscall_linux_gc.go
│ │ │ ├── syscall_linux_gc_386.go
│ │ │ ├── syscall_linux_gc_arm.go
│ │ │ ├── syscall_linux_gccgo_386.go
│ │ │ ├── syscall_linux_gccgo_arm.go
│ │ │ ├── syscall_linux_loong64.go
│ │ │ ├── syscall_linux_mips64x.go
│ │ │ ├── syscall_linux_mipsx.go
│ │ │ ├── syscall_linux_ppc.go
│ │ │ ├── syscall_linux_ppc64x.go
│ │ │ ├── syscall_linux_riscv64.go
│ │ │ ├── syscall_linux_s390x.go
│ │ │ ├── syscall_linux_sparc64.go
│ │ │ ├── syscall_netbsd.go
│ │ │ ├── syscall_netbsd_386.go
│ │ │ ├── syscall_netbsd_amd64.go
│ │ │ ├── syscall_netbsd_arm.go
│ │ │ ├── syscall_netbsd_arm64.go
│ │ │ ├── syscall_openbsd.go
│ │ │ ├── syscall_openbsd_386.go
│ │ │ ├── syscall_openbsd_amd64.go
│ │ │ ├── syscall_openbsd_arm.go
│ │ │ ├── syscall_openbsd_arm64.go
│ │ │ ├── syscall_openbsd_libc.go
│ │ │ ├── syscall_openbsd_mips64.go
│ │ │ ├── syscall_openbsd_ppc64.go
│ │ │ ├── syscall_openbsd_riscv64.go
│ │ │ ├── syscall_solaris.go
│ │ │ ├── syscall_solaris_amd64.go
│ │ │ ├── syscall_unix.go
│ │ │ ├── syscall_unix_gc.go
│ │ │ ├── syscall_unix_gc_ppc64x.go
│ │ │ ├── syscall_zos_s390x.go
│ │ │ ├── sysvshm_linux.go
│ │ │ ├── sysvshm_unix.go
│ │ │ ├── sysvshm_unix_other.go
│ │ │ ├── timestruct.go
│ │ │ ├── unveil_openbsd.go
│ │ │ ├── vgetrandom_linux.go
│ │ │ ├── vgetrandom_unsupported.go
│ │ │ ├── xattr_bsd.go
│ │ │ ├── zerrors_aix_ppc.go
│ │ │ ├── zerrors_aix_ppc64.go
│ │ │ ├── zerrors_darwin_amd64.go
│ │ │ ├── zerrors_darwin_arm64.go
│ │ │ ├── zerrors_dragonfly_amd64.go
│ │ │ ├── zerrors_freebsd_386.go
│ │ │ ├── zerrors_freebsd_amd64.go
│ │ │ ├── zerrors_freebsd_arm.go
│ │ │ ├── zerrors_freebsd_arm64.go
│ │ │ ├── zerrors_freebsd_riscv64.go
│ │ │ ├── zerrors_linux.go
│ │ │ ├── zerrors_linux_386.go
│ │ │ ├── zerrors_linux_amd64.go
│ │ │ ├── zerrors_linux_arm.go
│ │ │ ├── zerrors_linux_arm64.go
│ │ │ ├── zerrors_linux_loong64.go
│ │ │ ├── zerrors_linux_mips.go
│ │ │ ├── zerrors_linux_mips64.go
│ │ │ ├── zerrors_linux_mips64le.go
│ │ │ ├── zerrors_linux_mipsle.go
│ │ │ ├── zerrors_linux_ppc.go
│ │ │ ├── zerrors_linux_ppc64.go
│ │ │ ├── zerrors_linux_ppc64le.go
│ │ │ ├── zerrors_linux_riscv64.go
│ │ │ ├── zerrors_linux_s390x.go
│ │ │ ├── zerrors_linux_sparc64.go
│ │ │ ├── zerrors_netbsd_386.go
│ │ │ ├── zerrors_netbsd_amd64.go
│ │ │ ├── zerrors_netbsd_arm.go
│ │ │ ├── zerrors_netbsd_arm64.go
│ │ │ ├── zerrors_openbsd_386.go
│ │ │ ├── zerrors_openbsd_amd64.go
│ │ │ ├── zerrors_openbsd_arm.go
│ │ │ ├── zerrors_openbsd_arm64.go
│ │ │ ├── zerrors_openbsd_mips64.go
│ │ │ ├── zerrors_openbsd_ppc64.go
│ │ │ ├── zerrors_openbsd_riscv64.go
│ │ │ ├── zerrors_solaris_amd64.go
│ │ │ ├── zerrors_zos_s390x.go
│ │ │ ├── zptrace_armnn_linux.go
│ │ │ ├── zptrace_linux_arm64.go
│ │ │ ├── zptrace_mipsnn_linux.go
│ │ │ ├── zptrace_mipsnnle_linux.go
│ │ │ ├── zptrace_x86_linux.go
│ │ │ ├── zsymaddr_zos_s390x.s
│ │ │ ├── zsyscall_aix_ppc.go
│ │ │ ├── zsyscall_aix_ppc64.go
│ │ │ ├── zsyscall_aix_ppc64_gc.go
│ │ │ ├── zsyscall_aix_ppc64_gccgo.go
│ │ │ ├── zsyscall_darwin_amd64.go
│ │ │ ├── zsyscall_darwin_amd64.s
│ │ │ ├── zsyscall_darwin_arm64.go
│ │ │ ├── zsyscall_darwin_arm64.s
│ │ │ ├── zsyscall_dragonfly_amd64.go
│ │ │ ├── zsyscall_freebsd_386.go
│ │ │ ├── zsyscall_freebsd_amd64.go
│ │ │ ├── zsyscall_freebsd_arm.go
│ │ │ ├── zsyscall_freebsd_arm64.go
│ │ │ ├── zsyscall_freebsd_riscv64.go
│ │ │ ├── zsyscall_illumos_amd64.go
│ │ │ ├── zsyscall_linux.go
│ │ │ ├── zsyscall_linux_386.go
│ │ │ ├── zsyscall_linux_amd64.go
│ │ │ ├── zsyscall_linux_arm.go
│ │ │ ├── zsyscall_linux_arm64.go
│ │ │ ├── zsyscall_linux_loong64.go
│ │ │ ├── zsyscall_linux_mips.go
│ │ │ ├── zsyscall_linux_mips64.go
│ │ │ ├── zsyscall_linux_mips64le.go
│ │ │ ├── zsyscall_linux_mipsle.go
│ │ │ ├── zsyscall_linux_ppc.go
│ │ │ ├── zsyscall_linux_ppc64.go
│ │ │ ├── zsyscall_linux_ppc64le.go
│ │ │ ├── zsyscall_linux_riscv64.go
│ │ │ ├── zsyscall_linux_s390x.go
│ │ │ ├── zsyscall_linux_sparc64.go
│ │ │ ├── zsyscall_netbsd_386.go
│ │ │ ├── zsyscall_netbsd_amd64.go
│ │ │ ├── zsyscall_netbsd_arm.go
│ │ │ ├── zsyscall_netbsd_arm64.go
│ │ │ ├── zsyscall_openbsd_386.go
│ │ │ ├── zsyscall_openbsd_386.s
│ │ │ ├── zsyscall_openbsd_amd64.go
│ │ │ ├── zsyscall_openbsd_amd64.s
│ │ │ ├── zsyscall_openbsd_arm.go
│ │ │ ├── zsyscall_openbsd_arm.s
│ │ │ ├── zsyscall_openbsd_arm64.go
│ │ │ ├── zsyscall_openbsd_arm64.s
│ │ │ ├── zsyscall_openbsd_mips64.go
│ │ │ ├── zsyscall_openbsd_mips64.s
│ │ │ ├── zsyscall_openbsd_ppc64.go
│ │ │ ├── zsyscall_openbsd_ppc64.s
│ │ │ ├── zsyscall_openbsd_riscv64.go
│ │ │ ├── zsyscall_openbsd_riscv64.s
│ │ │ ├── zsyscall_solaris_amd64.go
│ │ │ ├── zsyscall_zos_s390x.go
│ │ │ ├── zsysctl_openbsd_386.go
│ │ │ ├── zsysctl_openbsd_amd64.go
│ │ │ ├── zsysctl_openbsd_arm.go
│ │ │ ├── zsysctl_openbsd_arm64.go
│ │ │ ├── zsysctl_openbsd_mips64.go
│ │ │ ├── zsysctl_openbsd_ppc64.go
│ │ │ ├── zsysctl_openbsd_riscv64.go
│ │ │ ├── zsysnum_darwin_amd64.go
│ │ │ ├── zsysnum_darwin_arm64.go
│ │ │ ├── zsysnum_dragonfly_amd64.go
│ │ │ ├── zsysnum_freebsd_386.go
│ │ │ ├── zsysnum_freebsd_amd64.go
│ │ │ ├── zsysnum_freebsd_arm.go
│ │ │ ├── zsysnum_freebsd_arm64.go
│ │ │ ├── zsysnum_freebsd_riscv64.go
│ │ │ ├── zsysnum_linux_386.go
│ │ │ ├── zsysnum_linux_amd64.go
│ │ │ ├── zsysnum_linux_arm.go
│ │ │ ├── zsysnum_linux_arm64.go
│ │ │ ├── zsysnum_linux_loong64.go
│ │ │ ├── zsysnum_linux_mips.go
│ │ │ ├── zsysnum_linux_mips64.go
│ │ │ ├── zsysnum_linux_mips64le.go
│ │ │ ├── zsysnum_linux_mipsle.go
│ │ │ ├── zsysnum_linux_ppc.go
│ │ │ ├── zsysnum_linux_ppc64.go
│ │ │ ├── zsysnum_linux_ppc64le.go
│ │ │ ├── zsysnum_linux_riscv64.go
│ │ │ ├── zsysnum_linux_s390x.go
│ │ │ ├── zsysnum_linux_sparc64.go
│ │ │ ├── zsysnum_netbsd_386.go
│ │ │ ├── zsysnum_netbsd_amd64.go
│ │ │ ├── zsysnum_netbsd_arm.go
│ │ │ ├── zsysnum_netbsd_arm64.go
│ │ │ ├── zsysnum_openbsd_386.go
│ │ │ ├── zsysnum_openbsd_amd64.go
│ │ │ ├── zsysnum_openbsd_arm.go
│ │ │ ├── zsysnum_openbsd_arm64.go
│ │ │ ├── zsysnum_openbsd_mips64.go
│ │ │ ├── zsysnum_openbsd_ppc64.go
│ │ │ ├── zsysnum_openbsd_riscv64.go
│ │ │ ├── zsysnum_zos_s390x.go
│ │ │ ├── ztypes_aix_ppc.go
│ │ │ ├── ztypes_aix_ppc64.go
│ │ │ ├── ztypes_darwin_amd64.go
│ │ │ ├── ztypes_darwin_arm64.go
│ │ │ ├── ztypes_dragonfly_amd64.go
│ │ │ ├── ztypes_freebsd_386.go
│ │ │ ├── ztypes_freebsd_amd64.go
│ │ │ ├── ztypes_freebsd_arm.go
│ │ │ ├── ztypes_freebsd_arm64.go
│ │ │ ├── ztypes_freebsd_riscv64.go
│ │ │ ├── ztypes_linux.go
│ │ │ ├── ztypes_linux_386.go
│ │ │ ├── ztypes_linux_amd64.go
│ │ │ ├── ztypes_linux_arm.go
│ │ │ ├── ztypes_linux_arm64.go
│ │ │ ├── ztypes_linux_loong64.go
│ │ │ ├── ztypes_linux_mips.go
│ │ │ ├── ztypes_linux_mips64.go
│ │ │ ├── ztypes_linux_mips64le.go
│ │ │ ├── ztypes_linux_mipsle.go
│ │ │ ├── ztypes_linux_ppc.go
│ │ │ ├── ztypes_linux_ppc64.go
│ │ │ ├── ztypes_linux_ppc64le.go
│ │ │ ├── ztypes_linux_riscv64.go
│ │ │ ├── ztypes_linux_s390x.go
│ │ │ ├── ztypes_linux_sparc64.go
│ │ │ ├── ztypes_netbsd_386.go
│ │ │ ├── ztypes_netbsd_amd64.go
│ │ │ ├── ztypes_netbsd_arm.go
│ │ │ ├── ztypes_netbsd_arm64.go
│ │ │ ├── ztypes_openbsd_386.go
│ │ │ ├── ztypes_openbsd_amd64.go
│ │ │ ├── ztypes_openbsd_arm.go
│ │ │ ├── ztypes_openbsd_arm64.go
│ │ │ ├── ztypes_openbsd_mips64.go
│ │ │ ├── ztypes_openbsd_ppc64.go
│ │ │ ├── ztypes_openbsd_riscv64.go
│ │ │ ├── ztypes_solaris_amd64.go
│ │ │ └── ztypes_zos_s390x.go
│ │ └── windows
│ │ │ ├── aliases.go
│ │ │ ├── dll_windows.go
│ │ │ ├── env_windows.go
│ │ │ ├── eventlog.go
│ │ │ ├── exec_windows.go
│ │ │ ├── memory_windows.go
│ │ │ ├── mkerrors.bash
│ │ │ ├── mkknownfolderids.bash
│ │ │ ├── mksyscall.go
│ │ │ ├── race.go
│ │ │ ├── race0.go
│ │ │ ├── security_windows.go
│ │ │ ├── service.go
│ │ │ ├── setupapi_windows.go
│ │ │ ├── str.go
│ │ │ ├── syscall.go
│ │ │ ├── syscall_windows.go
│ │ │ ├── types_windows.go
│ │ │ ├── types_windows_386.go
│ │ │ ├── types_windows_amd64.go
│ │ │ ├── types_windows_arm.go
│ │ │ ├── types_windows_arm64.go
│ │ │ ├── zerrors_windows.go
│ │ │ ├── zknownfolderids_windows.go
│ │ │ └── zsyscall_windows.go
│ │ ├── term
│ │ ├── CONTRIBUTING.md
│ │ ├── LICENSE
│ │ ├── PATENTS
│ │ ├── README.md
│ │ ├── codereview.cfg
│ │ ├── term.go
│ │ ├── term_plan9.go
│ │ ├── term_unix.go
│ │ ├── term_unix_bsd.go
│ │ ├── term_unix_other.go
│ │ ├── term_unsupported.go
│ │ ├── term_windows.go
│ │ └── terminal.go
│ │ └── text
│ │ ├── LICENSE
│ │ ├── PATENTS
│ │ ├── cases
│ │ ├── cases.go
│ │ ├── context.go
│ │ ├── fold.go
│ │ ├── icu.go
│ │ ├── info.go
│ │ ├── map.go
│ │ ├── tables10.0.0.go
│ │ ├── tables11.0.0.go
│ │ ├── tables12.0.0.go
│ │ ├── tables13.0.0.go
│ │ ├── tables15.0.0.go
│ │ ├── tables9.0.0.go
│ │ └── trieval.go
│ │ ├── encoding
│ │ ├── encoding.go
│ │ ├── internal
│ │ │ ├── identifier
│ │ │ │ ├── identifier.go
│ │ │ │ └── mib.go
│ │ │ └── internal.go
│ │ └── unicode
│ │ │ ├── override.go
│ │ │ └── unicode.go
│ │ ├── feature
│ │ └── plural
│ │ │ ├── common.go
│ │ │ ├── message.go
│ │ │ ├── plural.go
│ │ │ └── tables.go
│ │ ├── internal
│ │ ├── catmsg
│ │ │ ├── catmsg.go
│ │ │ ├── codec.go
│ │ │ └── varint.go
│ │ ├── format
│ │ │ ├── format.go
│ │ │ └── parser.go
│ │ ├── internal.go
│ │ ├── language
│ │ │ ├── common.go
│ │ │ ├── compact.go
│ │ │ ├── compact
│ │ │ │ ├── compact.go
│ │ │ │ ├── language.go
│ │ │ │ ├── parents.go
│ │ │ │ ├── tables.go
│ │ │ │ └── tags.go
│ │ │ ├── compose.go
│ │ │ ├── coverage.go
│ │ │ ├── language.go
│ │ │ ├── lookup.go
│ │ │ ├── match.go
│ │ │ ├── parse.go
│ │ │ ├── tables.go
│ │ │ └── tags.go
│ │ ├── match.go
│ │ ├── number
│ │ │ ├── common.go
│ │ │ ├── decimal.go
│ │ │ ├── format.go
│ │ │ ├── number.go
│ │ │ ├── pattern.go
│ │ │ ├── roundingmode_string.go
│ │ │ └── tables.go
│ │ ├── stringset
│ │ │ └── set.go
│ │ ├── tag
│ │ │ └── tag.go
│ │ └── utf8internal
│ │ │ └── utf8internal.go
│ │ ├── language
│ │ ├── coverage.go
│ │ ├── doc.go
│ │ ├── language.go
│ │ ├── match.go
│ │ ├── parse.go
│ │ ├── tables.go
│ │ └── tags.go
│ │ ├── message
│ │ ├── catalog.go
│ │ ├── catalog
│ │ │ ├── catalog.go
│ │ │ ├── dict.go
│ │ │ ├── go19.go
│ │ │ └── gopre19.go
│ │ ├── doc.go
│ │ ├── format.go
│ │ ├── message.go
│ │ └── print.go
│ │ ├── runes
│ │ ├── cond.go
│ │ └── runes.go
│ │ ├── transform
│ │ └── transform.go
│ │ └── unicode
│ │ └── norm
│ │ ├── composition.go
│ │ ├── forminfo.go
│ │ ├── input.go
│ │ ├── iter.go
│ │ ├── normalize.go
│ │ ├── readwriter.go
│ │ ├── tables10.0.0.go
│ │ ├── tables11.0.0.go
│ │ ├── tables12.0.0.go
│ │ ├── tables13.0.0.go
│ │ ├── tables15.0.0.go
│ │ ├── tables9.0.0.go
│ │ ├── transform.go
│ │ └── trie.go
├── gopkg.in
│ ├── ini.v1
│ │ ├── .editorconfig
│ │ ├── .gitignore
│ │ ├── .golangci.yml
│ │ ├── LICENSE
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── codecov.yml
│ │ ├── data_source.go
│ │ ├── deprecated.go
│ │ ├── error.go
│ │ ├── file.go
│ │ ├── helper.go
│ │ ├── ini.go
│ │ ├── key.go
│ │ ├── parser.go
│ │ ├── section.go
│ │ └── struct.go
│ └── yaml.v3
│ │ ├── LICENSE
│ │ ├── NOTICE
│ │ ├── README.md
│ │ ├── apic.go
│ │ ├── decode.go
│ │ ├── emitterc.go
│ │ ├── encode.go
│ │ ├── parserc.go
│ │ ├── readerc.go
│ │ ├── resolve.go
│ │ ├── scannerc.go
│ │ ├── sorter.go
│ │ ├── writerc.go
│ │ ├── yaml.go
│ │ ├── yamlh.go
│ │ └── yamlprivateh.go
└── modules.txt
└── xmltemplate
├── xmltemplate.go
└── xmltemplate_test.go
/changelog/config.go:
--------------------------------------------------------------------------------
1 | package changelog
2 |
3 | import "regexp"
4 |
5 | var SemverVersionPattern = regexp.MustCompile("^\\d+\\.\\d+\\.\\d+$")
6 | var SemverVersionPatternWithPreRelease = regexp.MustCompile("^\\d+\\.\\d+\\.\\d+(:?\\-(:?alpha|beta|rc)\\.\\d+)?$")
7 |
8 | type Config struct {
9 | RenderFormat string
10 | RenderGitHubLinks bool
11 | SnippetsPaths []string
12 | ReleaseDate string
13 | ReleaseVersion string
14 | Product string
15 | SkipHeader bool
16 | RenderNoChanges bool
17 | SkipInvalidSnippets bool
18 | ReadStdin bool
19 | MarkdownHeaderBaseLevel int
20 | GitHubRepoURL string
21 | }
22 |
--------------------------------------------------------------------------------
/exec/exec.go:
--------------------------------------------------------------------------------
1 | package exec
2 |
3 | import (
4 | "bytes"
5 | "github.com/Graylog2/graylog-project-cli/logger"
6 | "github.com/Graylog2/graylog-project-cli/utils"
7 | "os/exec"
8 | "path/filepath"
9 | "runtime"
10 | "strings"
11 | )
12 |
13 | type ExecCommandOutput struct {
14 | Stdout bytes.Buffer
15 | Stderr bytes.Buffer
16 | }
17 |
18 | func ExecCommandInPath(path string, args ...string) (ExecCommandOutput, error) {
19 | defer utils.Chdir(utils.GetCwd())
20 |
21 | logger.Debug("[%v] %s]", filepath.Base(path), strings.Join(args, " "))
22 |
23 | utils.Chdir(path)
24 |
25 | var command *exec.Cmd
26 | if runtime.GOOS == "windows" {
27 | command = exec.Command("cmd.exe", "/c", strings.Join(args, " "))
28 | } else {
29 | command = exec.Command("sh", "-c", strings.Join(args, " "))
30 | }
31 |
32 | var output ExecCommandOutput
33 |
34 | command.Stdout = &output.Stdout
35 | command.Stderr = &output.Stderr
36 |
37 | err := command.Run()
38 |
39 | return output, err
40 | }
41 |
--------------------------------------------------------------------------------
/gh/pr_dependencies.go:
--------------------------------------------------------------------------------
1 | package gh
2 |
3 | import (
4 | "bufio"
5 | "io"
6 | "regexp"
7 | )
8 |
9 | var pullRequestDependencyPattern = regexp.MustCompile(`^/(?:jenkins-pr-deps|jpd|prd)\s+((?:Graylog2/\S+?#|https?://github.com/Graylog2/\S+?/pull/)[0-9]+)`)
10 |
11 | func ParsePullDependencies(input io.Reader) ([]string, error) {
12 | dependencies := make([]string, 0)
13 |
14 | scanner := bufio.NewScanner(input)
15 | for scanner.Scan() {
16 | match := pullRequestDependencyPattern.FindStringSubmatch(scanner.Text())
17 |
18 | if len(match) < 2 {
19 | continue
20 | }
21 |
22 | dependencies = append(dependencies, match[1])
23 | }
24 |
25 | return dependencies, nil
26 | }
27 |
--------------------------------------------------------------------------------
/git/utils.go:
--------------------------------------------------------------------------------
1 | package git
2 |
3 | import (
4 | "fmt"
5 | "os"
6 | )
7 |
8 | func GetRemoteUrl(path string, remote string) (string, error) {
9 | cwd, err := os.Getwd()
10 | if err != nil {
11 | return "", fmt.Errorf("couldn't get Git repository URL: %w", err)
12 | }
13 | defer os.Chdir(cwd)
14 |
15 | if err := os.Chdir(path); err != nil {
16 | return "", fmt.Errorf("couldn't get Git repository URL: %w", err)
17 | }
18 |
19 | urlString, err := GitValueE("remote", "get-url", "--push", remote)
20 | if err != nil {
21 | return "", fmt.Errorf("couldn't get Git repository URL: %w", err)
22 | }
23 |
24 | return urlString, nil
25 | }
26 |
--------------------------------------------------------------------------------
/git/utils_test.go:
--------------------------------------------------------------------------------
1 | package git
2 |
3 | import (
4 | "github.com/stretchr/testify/assert"
5 | "github.com/stretchr/testify/require"
6 | "testing"
7 | )
8 |
9 | func TestGetRemoteUrl(t *testing.T) {
10 | repo := t.TempDir()
11 |
12 | require.Nil(t, Exec("init", repo))
13 |
14 | t.Run("WithoutOrigin", func(t *testing.T) {
15 | _, err := GetRemoteUrl(repo, "origin")
16 | assert.NotNil(t, err)
17 | })
18 |
19 | t.Run("WithoutOrigin", func(t *testing.T) {
20 | require.Nil(t, ExecInPath(repo, "remote", "add", "origin", "git@github.com:test/test.git"))
21 | url, err := GetRemoteUrl(repo, "origin")
22 | require.Nil(t, err)
23 | assert.Equal(t, "git@github.com:test/test.git", url)
24 | })
25 | }
26 |
--------------------------------------------------------------------------------
/idea/testdata/.config/idea/templates/run-configurations/server.env.template:
--------------------------------------------------------------------------------
1 | # vim: ft=sh
2 | GRAYLOG_NODE_ID_FILE={{ .DataDir }}/node-id
3 | # Required to pass the pre-flight check for the Enterprise binaries.
4 | GRAYLOG_BIN_DIR=../graylog-project-repos/graylog-plugin-enterprise/enterprise/bin
5 | GRAYLOG_DATA_DIR={{ .DataDir }}
6 | GRAYLOG_MESSAGE_JOURNAL_DIR={{ .DataDir }}/journal
7 | GRAYLOG_PASSWORD_SECRET={{ .PasswordSecret }}
8 | GRAYLOG_ROOT_PASSWORD_SHA2={{ .RootPasswordHash }}
9 | GRAYLOG_HTTP_BIND_ADDRESS=127.0.0.1:{{ add 9000 .PortOffset }}
10 | GRAYLOG_IS_LEADER={{ .IsLeaderNode }}
11 | #GRAYLOG_LEADER_ELECTION_MODE=automatic
12 | GRAYLOG_LB_RECOGNITION_PERIOD_SECONDS=0
13 | GRAYLOG_VERSIONCHECKS=false
14 | GRAYLOG_TELEMETRY_ENABLED=false
15 |
16 | GRAYLOG_MONGODB_URI=mongodb://127.0.0.1:27017/graylog
17 | #GRAYLOG_ELASTICSEARCH_HOSTS=http://127.0.0.1:9200,http://127.0.0.1:9201
18 |
--------------------------------------------------------------------------------
/idea/testdata/.config/idea/templates/run-configurations/web.run.xml.template:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/logger/loggable_error.go:
--------------------------------------------------------------------------------
1 | package logger
2 |
3 | import "fmt"
4 |
5 | func NewLoggableError(err error, title string, messages []string) *LoggableError {
6 | return &LoggableError{
7 | title: title,
8 | Messages: messages,
9 | err: err,
10 | }
11 | }
12 |
13 | type LoggableError struct {
14 | title string
15 | Messages []string
16 | err error
17 | }
18 |
19 | func (l LoggableError) Cause() error {
20 | return l.err
21 | }
22 |
23 | func (l LoggableError) Error() string {
24 | return fmt.Sprintf("%s: %s", l.title, l.err)
25 | }
26 |
--------------------------------------------------------------------------------
/main.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "github.com/Graylog2/graylog-project-cli/cmd"
5 | "github.com/k0kubun/pp/v3"
6 | "github.com/mattn/go-isatty"
7 | "os"
8 | )
9 |
10 | func init() {
11 | pp.Default.SetColoringEnabled(isatty.IsTerminal(os.Stdout.Fd()))
12 | }
13 |
14 | func main() {
15 | cmd.Execute()
16 | }
17 |
--------------------------------------------------------------------------------
/utils/maven.go:
--------------------------------------------------------------------------------
1 | package utils
2 |
3 | import "os"
4 |
5 | // MavenBin returns the Maven command name.
6 | // An existing Maven wrapper (./mvnw) in the current directory is preferred.
7 | func MavenBin() string {
8 | // Prefer an existing Maven wrapper script to ensure consistent Maven version usage.
9 | mvnCmd := "./mvnw"
10 | if _, err := os.Stat(mvnCmd); os.IsNotExist(err) {
11 | mvnCmd = "mvn"
12 | }
13 | return mvnCmd
14 | }
15 |
--------------------------------------------------------------------------------
/utils/rename_test.go:
--------------------------------------------------------------------------------
1 | package utils
2 |
3 | import (
4 | "github.com/stretchr/testify/assert"
5 | "github.com/stretchr/testify/require"
6 | "os"
7 | "path/filepath"
8 | "testing"
9 | )
10 |
11 | func TestAtomicallyWriteFile(t *testing.T) {
12 | dir := t.TempDir()
13 | filename := filepath.Join(dir, "test.txt")
14 |
15 | require.NoError(t, AtomicallyWriteFile(filename, []byte("hello"), 0600))
16 |
17 | data, err := os.ReadFile(filename)
18 | require.NoError(t, err)
19 |
20 | assert.Equal(t, []byte("hello"), data)
21 | }
22 |
--------------------------------------------------------------------------------
/utils/rename_unix.go:
--------------------------------------------------------------------------------
1 | //go:build !windows
2 |
3 | package utils
4 |
5 | import (
6 | "github.com/google/renameio/v2"
7 | "os"
8 | )
9 |
10 | func AtomicallyWriteFile(filename string, data []byte, perm os.FileMode) error {
11 | if err := renameio.WriteFile(filename, data, perm); err != nil {
12 | return err
13 | }
14 | return nil
15 | }
16 |
--------------------------------------------------------------------------------
/utils/rename_windows.go:
--------------------------------------------------------------------------------
1 | //go:build windows
2 |
3 | package utils
4 |
5 | import (
6 | "os"
7 | "path/filepath"
8 | )
9 |
10 | func AtomicallyWriteFile(filename string, data []byte, perm os.FileMode) error {
11 | // The github.com/google/renameio library doesn't support Windows so we have to do a best-effort implementation.
12 | file, err := os.CreateTemp(filepath.Dir(filename), filepath.Base(filename)+".*")
13 | if err != nil {
14 | return err
15 | }
16 | if _, err := file.Write(data); err != nil {
17 | file.Close()
18 | return err
19 | }
20 | file.Close()
21 | if err := os.Rename(file.Name(), filename); err != nil {
22 | return err
23 | }
24 | return nil
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/dario.cat/mergo/.deepsource.toml:
--------------------------------------------------------------------------------
1 | version = 1
2 |
3 | test_patterns = [
4 | "*_test.go"
5 | ]
6 |
7 | [[analyzers]]
8 | name = "go"
9 | enabled = true
10 |
11 | [analyzers.meta]
12 | import_path = "dario.cat/mergo"
--------------------------------------------------------------------------------
/vendor/dario.cat/mergo/.gitignore:
--------------------------------------------------------------------------------
1 | #### joe made this: http://goel.io/joe
2 |
3 | #### go ####
4 | # Binaries for programs and plugins
5 | *.exe
6 | *.dll
7 | *.so
8 | *.dylib
9 |
10 | # Test binary, build with `go test -c`
11 | *.test
12 |
13 | # Output of the go coverage tool, specifically when used with LiteIDE
14 | *.out
15 |
16 | # Golang/Intellij
17 | .idea
18 |
19 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
20 | .glide/
21 |
22 | #### vim ####
23 | # Swap
24 | [._]*.s[a-v][a-z]
25 | [._]*.sw[a-p]
26 | [._]s[a-v][a-z]
27 | [._]sw[a-p]
28 |
29 | # Session
30 | Session.vim
31 |
32 | # Temporary
33 | .netrwhist
34 | *~
35 | # Auto-generated tag files
36 | tags
37 |
--------------------------------------------------------------------------------
/vendor/dario.cat/mergo/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | arch:
3 | - amd64
4 | - ppc64le
5 | install:
6 | - go get -t
7 | - go get golang.org/x/tools/cmd/cover
8 | - go get github.com/mattn/goveralls
9 | script:
10 | - go test -race -v ./...
11 | after_script:
12 | - $HOME/gopath/bin/goveralls -service=travis-ci -repotoken $COVERALLS_TOKEN
13 |
--------------------------------------------------------------------------------
/vendor/dario.cat/mergo/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | ## Supported Versions
4 |
5 | | Version | Supported |
6 | | ------- | ------------------ |
7 | | 0.3.x | :white_check_mark: |
8 | | < 0.3 | :x: |
9 |
10 | ## Security contact information
11 |
12 | To report a security vulnerability, please use the
13 | [Tidelift security contact](https://tidelift.com/security).
14 | Tidelift will coordinate the fix and disclosure.
15 |
--------------------------------------------------------------------------------
/vendor/github.com/Masterminds/goutils/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
3 | go:
4 | - 1.6
5 | - 1.7
6 | - 1.8
7 | - tip
8 |
9 | script:
10 | - go test -v
11 |
12 | notifications:
13 | webhooks:
14 | urls:
15 | - https://webhooks.gitter.im/e/06e3328629952dabe3e0
16 | on_success: change # options: [always|never|change] default: always
17 | on_failure: always # options: [always|never|change] default: always
18 | on_start: never # options: [always|never|change] default: always
19 |
--------------------------------------------------------------------------------
/vendor/github.com/Masterminds/goutils/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # 1.0.1 (2017-05-31)
2 |
3 | ## Fixed
4 | - #21: Fix generation of alphanumeric strings (thanks @dbarranco)
5 |
6 | # 1.0.0 (2014-04-30)
7 |
8 | - Initial release.
9 |
--------------------------------------------------------------------------------
/vendor/github.com/Masterminds/goutils/appveyor.yml:
--------------------------------------------------------------------------------
1 | version: build-{build}.{branch}
2 |
3 | clone_folder: C:\gopath\src\github.com\Masterminds\goutils
4 | shallow_clone: true
5 |
6 | environment:
7 | GOPATH: C:\gopath
8 |
9 | platform:
10 | - x64
11 |
12 | build: off
13 |
14 | install:
15 | - go version
16 | - go env
17 |
18 | test_script:
19 | - go test -v
20 |
21 | deploy: off
22 |
--------------------------------------------------------------------------------
/vendor/github.com/Masterminds/semver/v3/.gitignore:
--------------------------------------------------------------------------------
1 | _fuzz/
--------------------------------------------------------------------------------
/vendor/github.com/Masterminds/semver/v3/.golangci.yml:
--------------------------------------------------------------------------------
1 | run:
2 | deadline: 2m
3 |
4 | linters:
5 | disable-all: true
6 | enable:
7 | - misspell
8 | - govet
9 | - staticcheck
10 | - errcheck
11 | - unparam
12 | - ineffassign
13 | - nakedret
14 | - gocyclo
15 | - dupl
16 | - goimports
17 | - revive
18 | - gosec
19 | - gosimple
20 | - typecheck
21 | - unused
22 |
23 | linters-settings:
24 | gofmt:
25 | simplify: true
26 | dupl:
27 | threshold: 600
28 |
--------------------------------------------------------------------------------
/vendor/github.com/Masterminds/semver/v3/Makefile:
--------------------------------------------------------------------------------
1 | GOPATH=$(shell go env GOPATH)
2 | GOLANGCI_LINT=$(GOPATH)/bin/golangci-lint
3 |
4 | .PHONY: lint
5 | lint: $(GOLANGCI_LINT)
6 | @echo "==> Linting codebase"
7 | @$(GOLANGCI_LINT) run
8 |
9 | .PHONY: test
10 | test:
11 | @echo "==> Running tests"
12 | GO111MODULE=on go test -v
13 |
14 | .PHONY: test-cover
15 | test-cover:
16 | @echo "==> Running Tests with coverage"
17 | GO111MODULE=on go test -cover .
18 |
19 | .PHONY: fuzz
20 | fuzz:
21 | @echo "==> Running Fuzz Tests"
22 | go env GOCACHE
23 | go test -fuzz=FuzzNewVersion -fuzztime=15s .
24 | go test -fuzz=FuzzStrictNewVersion -fuzztime=15s .
25 | go test -fuzz=FuzzNewConstraint -fuzztime=15s .
26 |
27 | $(GOLANGCI_LINT):
28 | # Install golangci-lint. The configuration for it is in the .golangci.yml
29 | # file in the root of the repository
30 | echo ${GOPATH}
31 | curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.56.2
32 |
--------------------------------------------------------------------------------
/vendor/github.com/Masterminds/semver/v3/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | ## Supported Versions
4 |
5 | The following versions of semver are currently supported:
6 |
7 | | Version | Supported |
8 | | ------- | ------------------ |
9 | | 3.x | :white_check_mark: |
10 | | 2.x | :x: |
11 | | 1.x | :x: |
12 |
13 | Fixes are only released for the latest minor version in the form of a patch release.
14 |
15 | ## Reporting a Vulnerability
16 |
17 | You can privately disclose a vulnerability through GitHubs
18 | [private vulnerability reporting](https://github.com/Masterminds/semver/security/advisories)
19 | mechanism.
20 |
--------------------------------------------------------------------------------
/vendor/github.com/Masterminds/semver/v3/collection.go:
--------------------------------------------------------------------------------
1 | package semver
2 |
3 | // Collection is a collection of Version instances and implements the sort
4 | // interface. See the sort package for more details.
5 | // https://golang.org/pkg/sort/
6 | type Collection []*Version
7 |
8 | // Len returns the length of a collection. The number of Version instances
9 | // on the slice.
10 | func (c Collection) Len() int {
11 | return len(c)
12 | }
13 |
14 | // Less is needed for the sort interface to compare two Version objects on the
15 | // slice. If checks if one is less than the other.
16 | func (c Collection) Less(i, j int) bool {
17 | return c[i].LessThan(c[j])
18 | }
19 |
20 | // Swap is needed for the sort interface to replace the Version objects
21 | // at two different positions in the slice.
22 | func (c Collection) Swap(i, j int) {
23 | c[i], c[j] = c[j], c[i]
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/github.com/Masterminds/sprig/v3/.gitignore:
--------------------------------------------------------------------------------
1 | vendor/
2 | /.glide
3 |
--------------------------------------------------------------------------------
/vendor/github.com/Masterminds/sprig/v3/Makefile:
--------------------------------------------------------------------------------
1 | .PHONY: test
2 | test:
3 | @echo "==> Running tests"
4 | GO111MODULE=on go test -v
5 |
6 | .PHONY: test-cover
7 | test-cover:
8 | @echo "==> Running Tests with coverage"
9 | GO111MODULE=on go test -cover .
10 |
--------------------------------------------------------------------------------
/vendor/github.com/Masterminds/sprig/v3/doc.go:
--------------------------------------------------------------------------------
1 | /*
2 | Package sprig provides template functions for Go.
3 |
4 | This package contains a number of utility functions for working with data
5 | inside of Go `html/template` and `text/template` files.
6 |
7 | To add these functions, use the `template.Funcs()` method:
8 |
9 | t := template.New("foo").Funcs(sprig.FuncMap())
10 |
11 | Note that you should add the function map before you parse any template files.
12 |
13 | In several cases, Sprig reverses the order of arguments from the way they
14 | appear in the standard library. This is to make it easier to pipe
15 | arguments into functions.
16 |
17 | See http://masterminds.github.io/sprig/ for more detailed documentation on each of the available functions.
18 | */
19 | package sprig
20 |
--------------------------------------------------------------------------------
/vendor/github.com/Masterminds/sprig/v3/network.go:
--------------------------------------------------------------------------------
1 | package sprig
2 |
3 | import (
4 | "math/rand"
5 | "net"
6 | )
7 |
8 | func getHostByName(name string) string {
9 | addrs, _ := net.LookupHost(name)
10 | //TODO: add error handing when release v3 comes out
11 | return addrs[rand.Intn(len(addrs))]
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/github.com/Masterminds/sprig/v3/reflect.go:
--------------------------------------------------------------------------------
1 | package sprig
2 |
3 | import (
4 | "fmt"
5 | "reflect"
6 | )
7 |
8 | // typeIs returns true if the src is the type named in target.
9 | func typeIs(target string, src interface{}) bool {
10 | return target == typeOf(src)
11 | }
12 |
13 | func typeIsLike(target string, src interface{}) bool {
14 | t := typeOf(src)
15 | return target == t || "*"+target == t
16 | }
17 |
18 | func typeOf(src interface{}) string {
19 | return fmt.Sprintf("%T", src)
20 | }
21 |
22 | func kindIs(target string, src interface{}) bool {
23 | return target == kindOf(src)
24 | }
25 |
26 | func kindOf(src interface{}) string {
27 | return reflect.ValueOf(src).Kind().String()
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/github.com/Masterminds/sprig/v3/semver.go:
--------------------------------------------------------------------------------
1 | package sprig
2 |
3 | import (
4 | sv2 "github.com/Masterminds/semver/v3"
5 | )
6 |
7 | func semverCompare(constraint, version string) (bool, error) {
8 | c, err := sv2.NewConstraint(constraint)
9 | if err != nil {
10 | return false, err
11 | }
12 |
13 | v, err := sv2.NewVersion(version)
14 | if err != nil {
15 | return false, err
16 | }
17 |
18 | return c.Check(v), nil
19 | }
20 |
21 | func semver(version string) (*sv2.Version, error) {
22 | return sv2.NewVersion(version)
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/github.com/chzyer/readline/.gitignore:
--------------------------------------------------------------------------------
1 | .vscode/*
2 |
--------------------------------------------------------------------------------
/vendor/github.com/chzyer/readline/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | go:
3 | - 1.x
4 | script:
5 | - GOOS=windows go install github.com/chzyer/readline/example/...
6 | - GOOS=linux go install github.com/chzyer/readline/example/...
7 | - GOOS=darwin go install github.com/chzyer/readline/example/...
8 | - go test -race -v
9 |
--------------------------------------------------------------------------------
/vendor/github.com/chzyer/readline/password.go:
--------------------------------------------------------------------------------
1 | package readline
2 |
3 | type opPassword struct {
4 | o *Operation
5 | backupCfg *Config
6 | }
7 |
8 | func newOpPassword(o *Operation) *opPassword {
9 | return &opPassword{o: o}
10 | }
11 |
12 | func (o *opPassword) ExitPasswordMode() {
13 | o.o.SetConfig(o.backupCfg)
14 | o.backupCfg = nil
15 | }
16 |
17 | func (o *opPassword) EnterPasswordMode(cfg *Config) (err error) {
18 | o.backupCfg, err = o.o.SetConfig(cfg)
19 | return
20 | }
21 |
22 | func (o *opPassword) PasswordConfig() *Config {
23 | return &Config{
24 | EnableMask: true,
25 | InterruptPrompt: "\n",
26 | EOFPrompt: "\n",
27 | HistoryLimit: -1,
28 | Painter: &defaultPainter{},
29 |
30 | Stdout: o.o.cfg.Stdout,
31 | Stderr: o.o.cfg.Stderr,
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/github.com/chzyer/readline/std_windows.go:
--------------------------------------------------------------------------------
1 | // +build windows
2 |
3 | package readline
4 |
5 | func init() {
6 | Stdin = NewRawReader()
7 | Stdout = NewANSIWriter(Stdout)
8 | Stderr = NewANSIWriter(Stderr)
9 | }
10 |
--------------------------------------------------------------------------------
/vendor/github.com/chzyer/readline/term_bsd.go:
--------------------------------------------------------------------------------
1 | // Copyright 2013 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build darwin dragonfly freebsd netbsd openbsd
6 |
7 | package readline
8 |
9 | import (
10 | "syscall"
11 | "unsafe"
12 | )
13 |
14 | func getTermios(fd int) (*Termios, error) {
15 | termios := new(Termios)
16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, uintptr(fd), syscall.TIOCGETA, uintptr(unsafe.Pointer(termios)), 0, 0, 0)
17 | if err != 0 {
18 | return nil, err
19 | }
20 | return termios, nil
21 | }
22 |
23 | func setTermios(fd int, termios *Termios) error {
24 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, uintptr(fd), syscall.TIOCSETA, uintptr(unsafe.Pointer(termios)), 0, 0, 0)
25 | if err != 0 {
26 | return err
27 | }
28 | return nil
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/github.com/chzyer/readline/term_nosyscall6.go:
--------------------------------------------------------------------------------
1 | // Copyright 2013 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build aix os400 solaris
6 |
7 | package readline
8 |
9 | import "golang.org/x/sys/unix"
10 |
11 | // GetSize returns the dimensions of the given terminal.
12 | func GetSize(fd int) (int, int, error) {
13 | ws, err := unix.IoctlGetWinsize(fd, unix.TIOCGWINSZ)
14 | if err != nil {
15 | return 0, 0, err
16 | }
17 | return int(ws.Col), int(ws.Row), nil
18 | }
19 |
20 | type Termios unix.Termios
21 |
22 | func getTermios(fd int) (*Termios, error) {
23 | termios, err := unix.IoctlGetTermios(fd, unix.TCGETS)
24 | if err != nil {
25 | return nil, err
26 | }
27 | return (*Termios)(termios), nil
28 | }
29 |
30 | func setTermios(fd int, termios *Termios) error {
31 | return unix.IoctlSetTermios(fd, unix.TCSETSF, (*unix.Termios)(termios))
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/github.com/chzyer/readline/term_unix.go:
--------------------------------------------------------------------------------
1 | // Copyright 2011 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build darwin dragonfly freebsd linux,!appengine netbsd openbsd
6 |
7 | package readline
8 |
9 | import (
10 | "syscall"
11 | "unsafe"
12 | )
13 |
14 | type Termios syscall.Termios
15 |
16 | // GetSize returns the dimensions of the given terminal.
17 | func GetSize(fd int) (int, int, error) {
18 | var dimensions [4]uint16
19 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, uintptr(fd), uintptr(syscall.TIOCGWINSZ), uintptr(unsafe.Pointer(&dimensions)), 0, 0, 0)
20 | if err != 0 {
21 | return 0, 0, err
22 | }
23 | return int(dimensions[1]), int(dimensions[0]), nil
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/github.com/chzyer/readline/utils_windows.go:
--------------------------------------------------------------------------------
1 | // +build windows
2 |
3 | package readline
4 |
5 | import (
6 | "io"
7 | "syscall"
8 | )
9 |
10 | func SuspendMe() {
11 | }
12 |
13 | func GetStdin() int {
14 | return int(syscall.Stdin)
15 | }
16 |
17 | func init() {
18 | isWindows = true
19 | }
20 |
21 | // get width of the terminal
22 | func GetScreenWidth() int {
23 | info, _ := GetConsoleScreenBufferInfo()
24 | if info == nil {
25 | return -1
26 | }
27 | return int(info.dwSize.x)
28 | }
29 |
30 | // ClearScreen clears the console screen
31 | func ClearScreen(_ io.Writer) error {
32 | return SetConsoleCursorPosition(&_COORD{0, 0})
33 | }
34 |
35 | func DefaultIsTerminal() bool {
36 | return true
37 | }
38 |
39 | func DefaultOnWidthChanged(func()) {
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/vendor/github.com/davecgh/go-spew/LICENSE:
--------------------------------------------------------------------------------
1 | ISC License
2 |
3 | Copyright (c) 2012-2016 Dave Collins
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/vendor/github.com/fatih/color/color_windows.go:
--------------------------------------------------------------------------------
1 | package color
2 |
3 | import (
4 | "os"
5 |
6 | "golang.org/x/sys/windows"
7 | )
8 |
9 | func init() {
10 | // Opt-in for ansi color support for current process.
11 | // https://learn.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences#output-sequences
12 | var outMode uint32
13 | out := windows.Handle(os.Stdout.Fd())
14 | if err := windows.GetConsoleMode(out, &outMode); err != nil {
15 | return
16 | }
17 | outMode |= windows.ENABLE_PROCESSED_OUTPUT | windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING
18 | _ = windows.SetConsoleMode(out, outMode)
19 | }
20 |
--------------------------------------------------------------------------------
/vendor/github.com/fsnotify/fsnotify/.cirrus.yml:
--------------------------------------------------------------------------------
1 | freebsd_task:
2 | name: 'FreeBSD'
3 | freebsd_instance:
4 | image_family: freebsd-14-1
5 | install_script:
6 | - pkg update -f
7 | - pkg install -y go
8 | test_script:
9 | # run tests as user "cirrus" instead of root
10 | - pw useradd cirrus -m
11 | - chown -R cirrus:cirrus .
12 | - FSNOTIFY_BUFFER=4096 sudo --preserve-env=FSNOTIFY_BUFFER -u cirrus go test -parallel 1 -race ./...
13 | - sudo --preserve-env=FSNOTIFY_BUFFER -u cirrus go test -parallel 1 -race ./...
14 | - FSNOTIFY_DEBUG=1 sudo --preserve-env=FSNOTIFY_BUFFER -u cirrus go test -parallel 1 -race -v ./...
15 |
--------------------------------------------------------------------------------
/vendor/github.com/fsnotify/fsnotify/.gitignore:
--------------------------------------------------------------------------------
1 | # go test -c output
2 | *.test
3 | *.test.exe
4 |
5 | # Output of go build ./cmd/fsnotify
6 | /fsnotify
7 | /fsnotify.exe
8 |
9 | /test/kqueue
10 | /test/a.out
11 |
--------------------------------------------------------------------------------
/vendor/github.com/fsnotify/fsnotify/.mailmap:
--------------------------------------------------------------------------------
1 | Chris Howey
2 | Nathan Youngman <4566+nathany@users.noreply.github.com>
3 |
--------------------------------------------------------------------------------
/vendor/github.com/fsnotify/fsnotify/backend_other.go:
--------------------------------------------------------------------------------
1 | //go:build appengine || (!darwin && !dragonfly && !freebsd && !openbsd && !linux && !netbsd && !solaris && !windows)
2 |
3 | package fsnotify
4 |
5 | import "errors"
6 |
7 | type other struct {
8 | Events chan Event
9 | Errors chan error
10 | }
11 |
12 | func newBackend(ev chan Event, errs chan error) (backend, error) {
13 | return nil, errors.New("fsnotify not supported on the current platform")
14 | }
15 | func newBufferedBackend(sz uint, ev chan Event, errs chan error) (backend, error) {
16 | return newBackend(ev, errs)
17 | }
18 | func (w *other) Close() error { return nil }
19 | func (w *other) WatchList() []string { return nil }
20 | func (w *other) Add(name string) error { return nil }
21 | func (w *other) AddWith(name string, opts ...addOpt) error { return nil }
22 | func (w *other) Remove(name string) error { return nil }
23 | func (w *other) xSupports(op Op) bool { return false }
24 |
--------------------------------------------------------------------------------
/vendor/github.com/fsnotify/fsnotify/internal/debug_kqueue.go:
--------------------------------------------------------------------------------
1 | //go:build freebsd || openbsd || netbsd || dragonfly || darwin
2 |
3 | package internal
4 |
5 | import (
6 | "fmt"
7 | "os"
8 | "strings"
9 | "time"
10 |
11 | "golang.org/x/sys/unix"
12 | )
13 |
14 | func Debug(name string, kevent *unix.Kevent_t) {
15 | mask := uint32(kevent.Fflags)
16 |
17 | var (
18 | l []string
19 | unknown = mask
20 | )
21 | for _, n := range names {
22 | if mask&n.m == n.m {
23 | l = append(l, n.n)
24 | unknown ^= n.m
25 | }
26 | }
27 | if unknown > 0 {
28 | l = append(l, fmt.Sprintf("0x%x", unknown))
29 | }
30 | fmt.Fprintf(os.Stderr, "FSNOTIFY_DEBUG: %s %10d:%-60s → %q\n",
31 | time.Now().Format("15:04:05.000000000"), mask, strings.Join(l, " | "), name)
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/github.com/fsnotify/fsnotify/internal/debug_netbsd.go:
--------------------------------------------------------------------------------
1 | package internal
2 |
3 | import "golang.org/x/sys/unix"
4 |
5 | var names = []struct {
6 | n string
7 | m uint32
8 | }{
9 | {"NOTE_ATTRIB", unix.NOTE_ATTRIB},
10 | {"NOTE_CHILD", unix.NOTE_CHILD},
11 | {"NOTE_DELETE", unix.NOTE_DELETE},
12 | {"NOTE_EXEC", unix.NOTE_EXEC},
13 | {"NOTE_EXIT", unix.NOTE_EXIT},
14 | {"NOTE_EXTEND", unix.NOTE_EXTEND},
15 | {"NOTE_FORK", unix.NOTE_FORK},
16 | {"NOTE_LINK", unix.NOTE_LINK},
17 | {"NOTE_LOWAT", unix.NOTE_LOWAT},
18 | {"NOTE_PCTRLMASK", unix.NOTE_PCTRLMASK},
19 | {"NOTE_PDATAMASK", unix.NOTE_PDATAMASK},
20 | {"NOTE_RENAME", unix.NOTE_RENAME},
21 | {"NOTE_REVOKE", unix.NOTE_REVOKE},
22 | {"NOTE_TRACK", unix.NOTE_TRACK},
23 | {"NOTE_TRACKERR", unix.NOTE_TRACKERR},
24 | {"NOTE_WRITE", unix.NOTE_WRITE},
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/github.com/fsnotify/fsnotify/internal/debug_openbsd.go:
--------------------------------------------------------------------------------
1 | package internal
2 |
3 | import "golang.org/x/sys/unix"
4 |
5 | var names = []struct {
6 | n string
7 | m uint32
8 | }{
9 | {"NOTE_ATTRIB", unix.NOTE_ATTRIB},
10 | // {"NOTE_CHANGE", unix.NOTE_CHANGE}, // Not on 386?
11 | {"NOTE_CHILD", unix.NOTE_CHILD},
12 | {"NOTE_DELETE", unix.NOTE_DELETE},
13 | {"NOTE_EOF", unix.NOTE_EOF},
14 | {"NOTE_EXEC", unix.NOTE_EXEC},
15 | {"NOTE_EXIT", unix.NOTE_EXIT},
16 | {"NOTE_EXTEND", unix.NOTE_EXTEND},
17 | {"NOTE_FORK", unix.NOTE_FORK},
18 | {"NOTE_LINK", unix.NOTE_LINK},
19 | {"NOTE_LOWAT", unix.NOTE_LOWAT},
20 | {"NOTE_PCTRLMASK", unix.NOTE_PCTRLMASK},
21 | {"NOTE_PDATAMASK", unix.NOTE_PDATAMASK},
22 | {"NOTE_RENAME", unix.NOTE_RENAME},
23 | {"NOTE_REVOKE", unix.NOTE_REVOKE},
24 | {"NOTE_TRACK", unix.NOTE_TRACK},
25 | {"NOTE_TRACKERR", unix.NOTE_TRACKERR},
26 | {"NOTE_TRUNCATE", unix.NOTE_TRUNCATE},
27 | {"NOTE_WRITE", unix.NOTE_WRITE},
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/github.com/fsnotify/fsnotify/internal/debug_windows.go:
--------------------------------------------------------------------------------
1 | package internal
2 |
3 | import (
4 | "fmt"
5 | "os"
6 | "path/filepath"
7 | "strings"
8 | "time"
9 |
10 | "golang.org/x/sys/windows"
11 | )
12 |
13 | func Debug(name string, mask uint32) {
14 | names := []struct {
15 | n string
16 | m uint32
17 | }{
18 | {"FILE_ACTION_ADDED", windows.FILE_ACTION_ADDED},
19 | {"FILE_ACTION_REMOVED", windows.FILE_ACTION_REMOVED},
20 | {"FILE_ACTION_MODIFIED", windows.FILE_ACTION_MODIFIED},
21 | {"FILE_ACTION_RENAMED_OLD_NAME", windows.FILE_ACTION_RENAMED_OLD_NAME},
22 | {"FILE_ACTION_RENAMED_NEW_NAME", windows.FILE_ACTION_RENAMED_NEW_NAME},
23 | }
24 |
25 | var (
26 | l []string
27 | unknown = mask
28 | )
29 | for _, n := range names {
30 | if mask&n.m == n.m {
31 | l = append(l, n.n)
32 | unknown ^= n.m
33 | }
34 | }
35 | if unknown > 0 {
36 | l = append(l, fmt.Sprintf("0x%x", unknown))
37 | }
38 | fmt.Fprintf(os.Stderr, "FSNOTIFY_DEBUG: %s %-65s → %q\n",
39 | time.Now().Format("15:04:05.000000000"), strings.Join(l, " | "), filepath.ToSlash(name))
40 | }
41 |
--------------------------------------------------------------------------------
/vendor/github.com/fsnotify/fsnotify/internal/freebsd.go:
--------------------------------------------------------------------------------
1 | //go:build freebsd
2 |
3 | package internal
4 |
5 | import (
6 | "syscall"
7 |
8 | "golang.org/x/sys/unix"
9 | )
10 |
11 | var (
12 | SyscallEACCES = syscall.EACCES
13 | UnixEACCES = unix.EACCES
14 | )
15 |
16 | var maxfiles uint64
17 |
18 | func SetRlimit() {
19 | // Go 1.19 will do this automatically: https://go-review.googlesource.com/c/go/+/393354/
20 | var l syscall.Rlimit
21 | err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &l)
22 | if err == nil && l.Cur != l.Max {
23 | l.Cur = l.Max
24 | syscall.Setrlimit(syscall.RLIMIT_NOFILE, &l)
25 | }
26 | maxfiles = uint64(l.Cur)
27 | }
28 |
29 | func Maxfiles() uint64 { return maxfiles }
30 | func Mkfifo(path string, mode uint32) error { return unix.Mkfifo(path, mode) }
31 | func Mknod(path string, mode uint32, dev int) error { return unix.Mknod(path, mode, uint64(dev)) }
32 |
--------------------------------------------------------------------------------
/vendor/github.com/fsnotify/fsnotify/internal/internal.go:
--------------------------------------------------------------------------------
1 | // Package internal contains some helpers.
2 | package internal
3 |
--------------------------------------------------------------------------------
/vendor/github.com/fsnotify/fsnotify/internal/unix.go:
--------------------------------------------------------------------------------
1 | //go:build !windows && !darwin && !freebsd
2 |
3 | package internal
4 |
5 | import (
6 | "syscall"
7 |
8 | "golang.org/x/sys/unix"
9 | )
10 |
11 | var (
12 | SyscallEACCES = syscall.EACCES
13 | UnixEACCES = unix.EACCES
14 | )
15 |
16 | var maxfiles uint64
17 |
18 | func SetRlimit() {
19 | // Go 1.19 will do this automatically: https://go-review.googlesource.com/c/go/+/393354/
20 | var l syscall.Rlimit
21 | err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &l)
22 | if err == nil && l.Cur != l.Max {
23 | l.Cur = l.Max
24 | syscall.Setrlimit(syscall.RLIMIT_NOFILE, &l)
25 | }
26 | maxfiles = uint64(l.Cur)
27 | }
28 |
29 | func Maxfiles() uint64 { return maxfiles }
30 | func Mkfifo(path string, mode uint32) error { return unix.Mkfifo(path, mode) }
31 | func Mknod(path string, mode uint32, dev int) error { return unix.Mknod(path, mode, dev) }
32 |
--------------------------------------------------------------------------------
/vendor/github.com/fsnotify/fsnotify/internal/unix2.go:
--------------------------------------------------------------------------------
1 | //go:build !windows
2 |
3 | package internal
4 |
5 | func HasPrivilegesForSymlink() bool {
6 | return true
7 | }
8 |
--------------------------------------------------------------------------------
/vendor/github.com/fsnotify/fsnotify/system_bsd.go:
--------------------------------------------------------------------------------
1 | //go:build freebsd || openbsd || netbsd || dragonfly
2 |
3 | package fsnotify
4 |
5 | import "golang.org/x/sys/unix"
6 |
7 | const openMode = unix.O_NONBLOCK | unix.O_RDONLY | unix.O_CLOEXEC
8 |
--------------------------------------------------------------------------------
/vendor/github.com/fsnotify/fsnotify/system_darwin.go:
--------------------------------------------------------------------------------
1 | //go:build darwin
2 |
3 | package fsnotify
4 |
5 | import "golang.org/x/sys/unix"
6 |
7 | // note: this constant is not defined on BSD
8 | const openMode = unix.O_EVTONLY | unix.O_CLOEXEC
9 |
--------------------------------------------------------------------------------
/vendor/github.com/golang-jwt/jwt/v5/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | bin
3 | .idea/
4 |
5 |
--------------------------------------------------------------------------------
/vendor/github.com/golang-jwt/jwt/v5/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | ## Supported Versions
4 |
5 | As of February 2022 (and until this document is updated), the latest version `v4` is supported.
6 |
7 | ## Reporting a Vulnerability
8 |
9 | If you think you found a vulnerability, and even if you are not sure, please report it to jwt-go-security@googlegroups.com or one of the other [golang-jwt maintainers](https://github.com/orgs/golang-jwt/people). Please try be explicit, describe steps to reproduce the security issue with code example(s).
10 |
11 | You will receive a response within a timely manner. If the issue is confirmed, we will do our best to release a patch as soon as possible given the complexity of the problem.
12 |
13 | ## Public Discussions
14 |
15 | Please avoid publicly discussing a potential security vulnerability.
16 |
17 | Let's take this offline and find a solution first, this limits the potential impact as much as possible.
18 |
19 | We appreciate your help!
20 |
--------------------------------------------------------------------------------
/vendor/github.com/golang-jwt/jwt/v5/claims.go:
--------------------------------------------------------------------------------
1 | package jwt
2 |
3 | // Claims represent any form of a JWT Claims Set according to
4 | // https://datatracker.ietf.org/doc/html/rfc7519#section-4. In order to have a
5 | // common basis for validation, it is required that an implementation is able to
6 | // supply at least the claim names provided in
7 | // https://datatracker.ietf.org/doc/html/rfc7519#section-4.1 namely `exp`,
8 | // `iat`, `nbf`, `iss`, `sub` and `aud`.
9 | type Claims interface {
10 | GetExpirationTime() (*NumericDate, error)
11 | GetIssuedAt() (*NumericDate, error)
12 | GetNotBefore() (*NumericDate, error)
13 | GetIssuer() (string, error)
14 | GetSubject() (string, error)
15 | GetAudience() (ClaimStrings, error)
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/github.com/golang-jwt/jwt/v5/doc.go:
--------------------------------------------------------------------------------
1 | // Package jwt is a Go implementation of JSON Web Tokens: http://self-issued.info/docs/draft-jones-json-web-token.html
2 | //
3 | // See README.md for more info.
4 | package jwt
5 |
--------------------------------------------------------------------------------
/vendor/github.com/golang-jwt/jwt/v5/staticcheck.conf:
--------------------------------------------------------------------------------
1 | checks = ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1023"]
2 |
--------------------------------------------------------------------------------
/vendor/github.com/golang-jwt/jwt/v5/token_option.go:
--------------------------------------------------------------------------------
1 | package jwt
2 |
3 | // TokenOption is a reserved type, which provides some forward compatibility,
4 | // if we ever want to introduce token creation-related options.
5 | type TokenOption func(*Token)
6 |
--------------------------------------------------------------------------------
/vendor/github.com/google/go-github/v66/github/actions.go:
--------------------------------------------------------------------------------
1 | // Copyright 2020 The go-github AUTHORS. All rights reserved.
2 | //
3 | // Use of this source code is governed by a BSD-style
4 | // license that can be found in the LICENSE file.
5 |
6 | package github
7 |
8 | // ActionsService handles communication with the actions related
9 | // methods of the GitHub API.
10 | //
11 | // GitHub API docs: https://docs.github.com/rest/actions/
12 | type ActionsService service
13 |
--------------------------------------------------------------------------------
/vendor/github.com/google/go-github/v66/github/dependabot.go:
--------------------------------------------------------------------------------
1 | // Copyright 2022 The go-github AUTHORS. All rights reserved.
2 | //
3 | // Use of this source code is governed by a BSD-style
4 | // license that can be found in the LICENSE file.
5 |
6 | package github
7 |
8 | // DependabotService handles communication with the Dependabot related
9 | // methods of the GitHub API.
10 | //
11 | // GitHub API docs: https://docs.github.com/rest/dependabot/
12 | type DependabotService service
13 |
--------------------------------------------------------------------------------
/vendor/github.com/google/go-github/v66/github/enterprise.go:
--------------------------------------------------------------------------------
1 | // Copyright 2020 The go-github AUTHORS. All rights reserved.
2 | //
3 | // Use of this source code is governed by a BSD-style
4 | // license that can be found in the LICENSE file.
5 |
6 | package github
7 |
8 | // EnterpriseService provides access to the enterprise related functions
9 | // in the GitHub API.
10 | //
11 | // GitHub API docs: https://docs.github.com/rest/enterprise-admin/
12 | type EnterpriseService service
13 |
--------------------------------------------------------------------------------
/vendor/github.com/google/go-github/v66/github/git.go:
--------------------------------------------------------------------------------
1 | // Copyright 2013 The go-github AUTHORS. All rights reserved.
2 | //
3 | // Use of this source code is governed by a BSD-style
4 | // license that can be found in the LICENSE file.
5 |
6 | package github
7 |
8 | // GitService handles communication with the git data related
9 | // methods of the GitHub API.
10 | //
11 | // GitHub API docs: https://docs.github.com/rest/git/
12 | type GitService service
13 |
--------------------------------------------------------------------------------
/vendor/github.com/google/go-github/v66/github/pulls_threads.go:
--------------------------------------------------------------------------------
1 | // Copyright 2022 The go-github AUTHORS. All rights reserved.
2 | //
3 | // Use of this source code is governed by a BSD-style
4 | // license that can be found in the LICENSE file.
5 |
6 | package github
7 |
8 | // PullRequestThread represents a thread of comments on a pull request.
9 | type PullRequestThread struct {
10 | ID *int64 `json:"id,omitempty"`
11 | NodeID *string `json:"node_id,omitempty"`
12 | Comments []*PullRequestComment `json:"comments,omitempty"`
13 | }
14 |
15 | func (p PullRequestThread) String() string {
16 | return Stringify(p)
17 | }
18 |
--------------------------------------------------------------------------------
/vendor/github.com/google/go-github/v66/github/with_appengine.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The go-github AUTHORS. All rights reserved.
2 | //
3 | // Use of this source code is governed by a BSD-style
4 | // license that can be found in the LICENSE file.
5 |
6 | //go:build appengine
7 | // +build appengine
8 |
9 | // This file provides glue for making github work on App Engine.
10 |
11 | package github
12 |
13 | import (
14 | "context"
15 | "net/http"
16 | )
17 |
18 | func withContext(ctx context.Context, req *http.Request) *http.Request {
19 | // No-op because App Engine adds context to a request differently.
20 | return req
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/google/go-github/v66/github/without_appengine.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The go-github AUTHORS. All rights reserved.
2 | //
3 | // Use of this source code is governed by a BSD-style
4 | // license that can be found in the LICENSE file.
5 |
6 | //go:build !appengine
7 | // +build !appengine
8 |
9 | // This file provides glue for making github work without App Engine.
10 |
11 | package github
12 |
13 | import (
14 | "context"
15 | "net/http"
16 | )
17 |
18 | func withContext(ctx context.Context, req *http.Request) *http.Request {
19 | return req.WithContext(ctx)
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/google/renameio/v2/.golangci.yml:
--------------------------------------------------------------------------------
1 | linters:
2 | disable:
3 | - errcheck
4 | enable:
5 | - gofmt
6 |
--------------------------------------------------------------------------------
/vendor/github.com/google/renameio/v2/doc.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 Google Inc.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | // Package renameio provides a way to atomically create or replace a file or
16 | // symbolic link.
17 | //
18 | // Caveat: this package requires the file system rename(2) implementation to be
19 | // atomic. Notably, this is not the case when using NFS with multiple clients:
20 | // https://stackoverflow.com/a/41396801
21 | package renameio
22 |
--------------------------------------------------------------------------------
/vendor/github.com/google/uuid/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # How to contribute
2 |
3 | We definitely welcome patches and contribution to this project!
4 |
5 | ### Tips
6 |
7 | Commits must be formatted according to the [Conventional Commits Specification](https://www.conventionalcommits.org).
8 |
9 | Always try to include a test case! If it is not possible or not necessary,
10 | please explain why in the pull request description.
11 |
12 | ### Releasing
13 |
14 | Commits that would precipitate a SemVer change, as described in the Conventional
15 | Commits Specification, will trigger [`release-please`](https://github.com/google-github-actions/release-please-action)
16 | to create a release candidate pull request. Once submitted, `release-please`
17 | will create a release.
18 |
19 | For tips on how to work with `release-please`, see its documentation.
20 |
21 | ### Legal requirements
22 |
23 | In order to protect both you and ourselves, you will need to sign the
24 | [Contributor License Agreement](https://cla.developers.google.com/clas).
25 |
26 | You may have already signed it for other Google projects.
27 |
--------------------------------------------------------------------------------
/vendor/github.com/google/uuid/CONTRIBUTORS:
--------------------------------------------------------------------------------
1 | Paul Borman
2 | bmatsuo
3 | shawnps
4 | theory
5 | jboverfelt
6 | dsymonds
7 | cd1
8 | wallclockbuilder
9 | dansouza
10 |
--------------------------------------------------------------------------------
/vendor/github.com/google/uuid/README.md:
--------------------------------------------------------------------------------
1 | # uuid
2 | The uuid package generates and inspects UUIDs based on
3 | [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122)
4 | and DCE 1.1: Authentication and Security Services.
5 |
6 | This package is based on the github.com/pborman/uuid package (previously named
7 | code.google.com/p/go-uuid). It differs from these earlier packages in that
8 | a UUID is a 16 byte array rather than a byte slice. One loss due to this
9 | change is the ability to represent an invalid UUID (vs a NIL UUID).
10 |
11 | ###### Install
12 | ```sh
13 | go get github.com/google/uuid
14 | ```
15 |
16 | ###### Documentation
17 | [](https://pkg.go.dev/github.com/google/uuid)
18 |
19 | Full `go doc` style documentation for the package can be viewed online without
20 | installing this package by using the GoDoc site here:
21 | http://pkg.go.dev/github.com/google/uuid
22 |
--------------------------------------------------------------------------------
/vendor/github.com/google/uuid/doc.go:
--------------------------------------------------------------------------------
1 | // Copyright 2016 Google Inc. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // Package uuid generates and inspects UUIDs.
6 | //
7 | // UUIDs are based on RFC 4122 and DCE 1.1: Authentication and Security
8 | // Services.
9 | //
10 | // A UUID is a 16 byte (128 bit) array. UUIDs may be used as keys to
11 | // maps or compared directly.
12 | package uuid
13 |
--------------------------------------------------------------------------------
/vendor/github.com/google/uuid/marshal.go:
--------------------------------------------------------------------------------
1 | // Copyright 2016 Google Inc. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package uuid
6 |
7 | import "fmt"
8 |
9 | // MarshalText implements encoding.TextMarshaler.
10 | func (uuid UUID) MarshalText() ([]byte, error) {
11 | var js [36]byte
12 | encodeHex(js[:], uuid)
13 | return js[:], nil
14 | }
15 |
16 | // UnmarshalText implements encoding.TextUnmarshaler.
17 | func (uuid *UUID) UnmarshalText(data []byte) error {
18 | id, err := ParseBytes(data)
19 | if err != nil {
20 | return err
21 | }
22 | *uuid = id
23 | return nil
24 | }
25 |
26 | // MarshalBinary implements encoding.BinaryMarshaler.
27 | func (uuid UUID) MarshalBinary() ([]byte, error) {
28 | return uuid[:], nil
29 | }
30 |
31 | // UnmarshalBinary implements encoding.BinaryUnmarshaler.
32 | func (uuid *UUID) UnmarshalBinary(data []byte) error {
33 | if len(data) != 16 {
34 | return fmt.Errorf("invalid UUID (got %d bytes)", len(data))
35 | }
36 | copy(uuid[:], data)
37 | return nil
38 | }
39 |
--------------------------------------------------------------------------------
/vendor/github.com/google/uuid/node_js.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 Google Inc. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // +build js
6 |
7 | package uuid
8 |
9 | // getHardwareInterface returns nil values for the JS version of the code.
10 | // This removes the "net" dependency, because it is not used in the browser.
11 | // Using the "net" library inflates the size of the transpiled JS code by 673k bytes.
12 | func getHardwareInterface(name string) (string, []byte) { return "", nil }
13 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/go-version/version_collection.go:
--------------------------------------------------------------------------------
1 | // Copyright (c) HashiCorp, Inc.
2 | // SPDX-License-Identifier: MPL-2.0
3 |
4 | package version
5 |
6 | // Collection is a type that implements the sort.Interface interface
7 | // so that versions can be sorted.
8 | type Collection []*Version
9 |
10 | func (v Collection) Len() int {
11 | return len(v)
12 | }
13 |
14 | func (v Collection) Less(i, j int) bool {
15 | return v[i].LessThan(v[j])
16 | }
17 |
18 | func (v Collection) Swap(i, j int) {
19 | v[i], v[j] = v[j], v[i]
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/hcl/.gitignore:
--------------------------------------------------------------------------------
1 | y.output
2 |
3 | # ignore intellij files
4 | .idea
5 | *.iml
6 | *.ipr
7 | *.iws
8 |
9 | *.test
10 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/hcl/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: go
4 |
5 | go:
6 | - 1.x
7 | - tip
8 |
9 | branches:
10 | only:
11 | - master
12 |
13 | script: make test
14 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/hcl/Makefile:
--------------------------------------------------------------------------------
1 | TEST?=./...
2 |
3 | default: test
4 |
5 | fmt: generate
6 | go fmt ./...
7 |
8 | test: generate
9 | go get -t ./...
10 | go test $(TEST) $(TESTARGS)
11 |
12 | generate:
13 | go generate ./...
14 |
15 | updatedeps:
16 | go get -u golang.org/x/tools/cmd/stringer
17 |
18 | .PHONY: default generate test updatedeps
19 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/hcl/appveyor.yml:
--------------------------------------------------------------------------------
1 | version: "build-{branch}-{build}"
2 | image: Visual Studio 2015
3 | clone_folder: c:\gopath\src\github.com\hashicorp\hcl
4 | environment:
5 | GOPATH: c:\gopath
6 | init:
7 | - git config --global core.autocrlf false
8 | install:
9 | - cmd: >-
10 | echo %Path%
11 |
12 | go version
13 |
14 | go env
15 |
16 | go get -t ./...
17 |
18 | build_script:
19 | - cmd: go test -v ./...
20 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/hcl/hcl.go:
--------------------------------------------------------------------------------
1 | // Package hcl decodes HCL into usable Go structures.
2 | //
3 | // hcl input can come in either pure HCL format or JSON format.
4 | // It can be parsed into an AST, and then decoded into a structure,
5 | // or it can be decoded directly from a string into a structure.
6 | //
7 | // If you choose to parse HCL into a raw AST, the benefit is that you
8 | // can write custom visitor implementations to implement custom
9 | // semantic checks. By default, HCL does not perform any semantic
10 | // checks.
11 | package hcl
12 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/hcl/hcl/parser/error.go:
--------------------------------------------------------------------------------
1 | package parser
2 |
3 | import (
4 | "fmt"
5 |
6 | "github.com/hashicorp/hcl/hcl/token"
7 | )
8 |
9 | // PosError is a parse error that contains a position.
10 | type PosError struct {
11 | Pos token.Pos
12 | Err error
13 | }
14 |
15 | func (e *PosError) Error() string {
16 | return fmt.Sprintf("At %s: %s", e.Pos, e.Err)
17 | }
18 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/hcl/lex.go:
--------------------------------------------------------------------------------
1 | package hcl
2 |
3 | import (
4 | "unicode"
5 | "unicode/utf8"
6 | )
7 |
8 | type lexModeValue byte
9 |
10 | const (
11 | lexModeUnknown lexModeValue = iota
12 | lexModeHcl
13 | lexModeJson
14 | )
15 |
16 | // lexMode returns whether we're going to be parsing in JSON
17 | // mode or HCL mode.
18 | func lexMode(v []byte) lexModeValue {
19 | var (
20 | r rune
21 | w int
22 | offset int
23 | )
24 |
25 | for {
26 | r, w = utf8.DecodeRune(v[offset:])
27 | offset += w
28 | if unicode.IsSpace(r) {
29 | continue
30 | }
31 | if r == '{' {
32 | return lexModeJson
33 | }
34 | break
35 | }
36 |
37 | return lexModeHcl
38 | }
39 |
--------------------------------------------------------------------------------
/vendor/github.com/hashicorp/hcl/parse.go:
--------------------------------------------------------------------------------
1 | package hcl
2 |
3 | import (
4 | "fmt"
5 |
6 | "github.com/hashicorp/hcl/hcl/ast"
7 | hclParser "github.com/hashicorp/hcl/hcl/parser"
8 | jsonParser "github.com/hashicorp/hcl/json/parser"
9 | )
10 |
11 | // ParseBytes accepts as input byte slice and returns ast tree.
12 | //
13 | // Input can be either JSON or HCL
14 | func ParseBytes(in []byte) (*ast.File, error) {
15 | return parse(in)
16 | }
17 |
18 | // ParseString accepts input as a string and returns ast tree.
19 | func ParseString(input string) (*ast.File, error) {
20 | return parse([]byte(input))
21 | }
22 |
23 | func parse(in []byte) (*ast.File, error) {
24 | switch lexMode(in) {
25 | case lexModeHcl:
26 | return hclParser.Parse(in)
27 | case lexModeJson:
28 | return jsonParser.Parse(in)
29 | }
30 |
31 | return nil, fmt.Errorf("unknown config format")
32 | }
33 |
34 | // Parse parses the given input and returns the root object.
35 | //
36 | // The input format can be either HCL or JSON.
37 | func Parse(input string) (*ast.File, error) {
38 | return parse([]byte(input))
39 | }
40 |
--------------------------------------------------------------------------------
/vendor/github.com/huandu/xstrings/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiled Object files, Static and Dynamic libs (Shared Objects)
2 | *.o
3 | *.a
4 | *.so
5 |
6 | # Folders
7 | _obj
8 | _test
9 |
10 | # Architecture specific extensions/prefixes
11 | *.[568vq]
12 | [568vq].out
13 |
14 | *.cgo1.go
15 | *.cgo2.c
16 | _cgo_defun.c
17 | _cgo_gotypes.go
18 | _cgo_export.*
19 |
20 | _testmain.go
21 |
22 | *.exe
23 | *.test
24 | *.prof
25 |
--------------------------------------------------------------------------------
/vendor/github.com/huandu/xstrings/common.go:
--------------------------------------------------------------------------------
1 | // Copyright 2015 Huan Du. All rights reserved.
2 | // Licensed under the MIT license that can be found in the LICENSE file.
3 |
4 | package xstrings
5 |
6 | const bufferMaxInitGrowSize = 2048
7 |
8 | // Lazy initialize a buffer.
9 | func allocBuffer(orig, cur string) *stringBuilder {
10 | output := &stringBuilder{}
11 | maxSize := len(orig) * 4
12 |
13 | // Avoid to reserve too much memory at once.
14 | if maxSize > bufferMaxInitGrowSize {
15 | maxSize = bufferMaxInitGrowSize
16 | }
17 |
18 | output.Grow(maxSize)
19 | output.WriteString(orig[:len(orig)-len(cur)])
20 | return output
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/huandu/xstrings/doc.go:
--------------------------------------------------------------------------------
1 | // Copyright 2015 Huan Du. All rights reserved.
2 | // Licensed under the MIT license that can be found in the LICENSE file.
3 |
4 | // Package xstrings is to provide string algorithms which are useful but not included in `strings` package.
5 | // See project home page for details. https://github.com/huandu/xstrings
6 | //
7 | // Package xstrings assumes all strings are encoded in utf8.
8 | package xstrings
9 |
--------------------------------------------------------------------------------
/vendor/github.com/huandu/xstrings/stringbuilder.go:
--------------------------------------------------------------------------------
1 | //go:build go1.10
2 | // +build go1.10
3 |
4 | package xstrings
5 |
6 | import "strings"
7 |
8 | type stringBuilder = strings.Builder
9 |
--------------------------------------------------------------------------------
/vendor/github.com/huandu/xstrings/stringbuilder_go110.go:
--------------------------------------------------------------------------------
1 | //go:build !go1.10
2 | // +build !go1.10
3 |
4 | package xstrings
5 |
6 | import "bytes"
7 |
8 | type stringBuilder struct {
9 | bytes.Buffer
10 | }
11 |
--------------------------------------------------------------------------------
/vendor/github.com/imdario/mergo/.deepsource.toml:
--------------------------------------------------------------------------------
1 | version = 1
2 |
3 | test_patterns = [
4 | "*_test.go"
5 | ]
6 |
7 | [[analyzers]]
8 | name = "go"
9 | enabled = true
10 |
11 | [analyzers.meta]
12 | import_path = "github.com/imdario/mergo"
--------------------------------------------------------------------------------
/vendor/github.com/imdario/mergo/.gitignore:
--------------------------------------------------------------------------------
1 | #### joe made this: http://goel.io/joe
2 |
3 | #### go ####
4 | # Binaries for programs and plugins
5 | *.exe
6 | *.dll
7 | *.so
8 | *.dylib
9 |
10 | # Test binary, build with `go test -c`
11 | *.test
12 |
13 | # Output of the go coverage tool, specifically when used with LiteIDE
14 | *.out
15 |
16 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
17 | .glide/
18 |
19 | #### vim ####
20 | # Swap
21 | [._]*.s[a-v][a-z]
22 | [._]*.sw[a-p]
23 | [._]s[a-v][a-z]
24 | [._]sw[a-p]
25 |
26 | # Session
27 | Session.vim
28 |
29 | # Temporary
30 | .netrwhist
31 | *~
32 | # Auto-generated tag files
33 | tags
34 |
--------------------------------------------------------------------------------
/vendor/github.com/imdario/mergo/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | arch:
3 | - amd64
4 | - ppc64le
5 | install:
6 | - go get -t
7 | - go get golang.org/x/tools/cmd/cover
8 | - go get github.com/mattn/goveralls
9 | script:
10 | - go test -race -v ./...
11 | after_script:
12 | - $HOME/gopath/bin/goveralls -service=travis-ci -repotoken $COVERALLS_TOKEN
13 |
--------------------------------------------------------------------------------
/vendor/github.com/imdario/mergo/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | ## Supported Versions
4 |
5 | | Version | Supported |
6 | | ------- | ------------------ |
7 | | 0.3.x | :white_check_mark: |
8 | | < 0.3 | :x: |
9 |
10 | ## Security contact information
11 |
12 | To report a security vulnerability, please use the
13 | [Tidelift security contact](https://tidelift.com/security).
14 | Tidelift will coordinate the fix and disclosure.
15 |
--------------------------------------------------------------------------------
/vendor/github.com/inconshreveable/mousetrap/README.md:
--------------------------------------------------------------------------------
1 | # mousetrap
2 |
3 | mousetrap is a tiny library that answers a single question.
4 |
5 | On a Windows machine, was the process invoked by someone double clicking on
6 | the executable file while browsing in explorer?
7 |
8 | ### Motivation
9 |
10 | Windows developers unfamiliar with command line tools will often "double-click"
11 | the executable for a tool. Because most CLI tools print the help and then exit
12 | when invoked without arguments, this is often very frustrating for those users.
13 |
14 | mousetrap provides a way to detect these invocations so that you can provide
15 | more helpful behavior and instructions on how to run the CLI tool. To see what
16 | this looks like, both from an organizational and a technical perspective, see
17 | https://inconshreveable.com/09-09-2014/sweat-the-small-stuff/
18 |
19 | ### The interface
20 |
21 | The library exposes a single interface:
22 |
23 | func StartedByExplorer() (bool)
24 |
--------------------------------------------------------------------------------
/vendor/github.com/inconshreveable/mousetrap/trap_others.go:
--------------------------------------------------------------------------------
1 | //go:build !windows
2 | // +build !windows
3 |
4 | package mousetrap
5 |
6 | // StartedByExplorer returns true if the program was invoked by the user
7 | // double-clicking on the executable from explorer.exe
8 | //
9 | // It is conservative and returns false if any of the internal calls fail.
10 | // It does not guarantee that the program was run from a terminal. It only can tell you
11 | // whether it was launched from explorer.exe
12 | //
13 | // On non-Windows platforms, it always returns false.
14 | func StartedByExplorer() bool {
15 | return false
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/github.com/k0kubun/pp/v3/.github_changelog_generator:
--------------------------------------------------------------------------------
1 | user=k0kubun
2 | project=pp
3 |
--------------------------------------------------------------------------------
/vendor/github.com/magiconair/properties/.gitignore:
--------------------------------------------------------------------------------
1 | *.sublime-project
2 | *.sublime-workspace
3 | *.un~
4 | *.swp
5 | .idea/
6 | *.iml
7 |
--------------------------------------------------------------------------------
/vendor/github.com/magiconair/properties/integrate.go:
--------------------------------------------------------------------------------
1 | // Copyright 2013-2022 Frank Schroeder. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package properties
6 |
7 | import "flag"
8 |
9 | // MustFlag sets flags that are skipped by dst.Parse when p contains
10 | // the respective key for flag.Flag.Name.
11 | //
12 | // It's use is recommended with command line arguments as in:
13 | //
14 | // flag.Parse()
15 | // p.MustFlag(flag.CommandLine)
16 | func (p *Properties) MustFlag(dst *flag.FlagSet) {
17 | m := make(map[string]*flag.Flag)
18 | dst.VisitAll(func(f *flag.Flag) {
19 | m[f.Name] = f
20 | })
21 | dst.Visit(func(f *flag.Flag) {
22 | delete(m, f.Name) // overridden
23 | })
24 |
25 | for name, f := range m {
26 | v, ok := p.Get(name)
27 | if !ok {
28 | continue
29 | }
30 |
31 | if err := f.Value.Set(v); err != nil {
32 | ErrorHandler(err)
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/github.com/magiconair/properties/rangecheck.go:
--------------------------------------------------------------------------------
1 | // Copyright 2013-2022 Frank Schroeder. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package properties
6 |
7 | import (
8 | "fmt"
9 | "math"
10 | )
11 |
12 | // make this a var to overwrite it in a test
13 | var is32Bit = ^uint(0) == math.MaxUint32
14 |
15 | // intRangeCheck checks if the value fits into the int type and
16 | // panics if it does not.
17 | func intRangeCheck(key string, v int64) int {
18 | if is32Bit && (v < math.MinInt32 || v > math.MaxInt32) {
19 | panic(fmt.Sprintf("Value %d for key %s out of range", v, key))
20 | }
21 | return int(v)
22 | }
23 |
24 | // uintRangeCheck checks if the value fits into the uint type and
25 | // panics if it does not.
26 | func uintRangeCheck(key string, v uint64) uint {
27 | if is32Bit && v > math.MaxUint32 {
28 | panic(fmt.Sprintf("Value %d for key %s out of range", v, key))
29 | }
30 | return uint(v)
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/github.com/manifoldco/promptui/.gitignore:
--------------------------------------------------------------------------------
1 | vendor
2 | all-cover.txt
3 | bin/
4 |
--------------------------------------------------------------------------------
/vendor/github.com/manifoldco/promptui/.golangci.yml:
--------------------------------------------------------------------------------
1 | run:
2 | deadline: 5m
3 |
4 | issues:
5 | # Disable maximums so we see all issues
6 | max-per-linter: 0
7 | max-same-issues: 0
8 |
9 | # golangci-lint ignores missing docstrings by default. That's no good!
10 | exclude-use-default: false
11 |
12 | linters:
13 | disable-all: true
14 | enable:
15 | - misspell
16 | - golint
17 | - goimports
18 | - ineffassign
19 | - deadcode
20 | - gofmt
21 | - govet
22 | - structcheck
23 | - unconvert
24 | - megacheck
25 | - typecheck
26 | - varcheck
27 |
--------------------------------------------------------------------------------
/vendor/github.com/manifoldco/promptui/.travis.yml:
--------------------------------------------------------------------------------
1 | dist: bionic
2 | language: go
3 |
4 | go:
5 | - "1.12.x"
6 | - "1.13.x"
7 |
8 | branches:
9 | only:
10 | - master
11 |
12 | after_success:
13 | # only report coverage for go-version 1.11
14 | - if [[ $TRAVIS_GO_VERSION =~ ^1\.11 ]] ; then bash <(curl -s https://codecov.io/bash) -f all-cover.txt; fi
15 |
--------------------------------------------------------------------------------
/vendor/github.com/manifoldco/promptui/keycodes_other.go:
--------------------------------------------------------------------------------
1 | // +build !windows
2 |
3 | package promptui
4 |
5 | import "github.com/chzyer/readline"
6 |
7 | var (
8 | // KeyBackspace is the default key for deleting input text.
9 | KeyBackspace rune = readline.CharBackspace
10 | )
11 |
--------------------------------------------------------------------------------
/vendor/github.com/manifoldco/promptui/keycodes_windows.go:
--------------------------------------------------------------------------------
1 | // +build windows
2 |
3 | package promptui
4 |
5 | // source: https://msdn.microsoft.com/en-us/library/aa243025(v=vs.60).aspx
6 |
7 | var (
8 | // KeyBackspace is the default key for deleting input text inside a command line prompt.
9 | KeyBackspace rune = 8
10 | )
11 |
--------------------------------------------------------------------------------
/vendor/github.com/manifoldco/promptui/styles.go:
--------------------------------------------------------------------------------
1 | // +build !windows
2 |
3 | package promptui
4 |
5 | // These are the default icons used by promptui for select and prompts. These should not be overridden and instead
6 | // customized through the use of custom templates
7 | var (
8 | // IconInitial is the icon used when starting in prompt mode and the icon next to the label when
9 | // starting in select mode.
10 | IconInitial = Styler(FGBlue)("?")
11 |
12 | // IconGood is the icon used when a good answer is entered in prompt mode.
13 | IconGood = Styler(FGGreen)("✔")
14 |
15 | // IconWarn is the icon used when a good, but potentially invalid answer is entered in prompt mode.
16 | IconWarn = Styler(FGYellow)("⚠")
17 |
18 | // IconBad is the icon used when a bad answer is entered in prompt mode.
19 | IconBad = Styler(FGRed)("✗")
20 |
21 | // IconSelect is the icon used to identify the currently selected item in select mode.
22 | IconSelect = Styler(FGBold)("▸")
23 | )
24 |
--------------------------------------------------------------------------------
/vendor/github.com/manifoldco/promptui/styles_windows.go:
--------------------------------------------------------------------------------
1 | package promptui
2 |
3 | // These are the default icons used bu promptui for select and prompts. They can either be overridden directly
4 | // from these variable or customized through the use of custom templates
5 | var (
6 | // IconInitial is the icon used when starting in prompt mode and the icon next to the label when
7 | // starting in select mode.
8 | IconInitial = Styler(FGBlue)("?")
9 |
10 | // IconGood is the icon used when a good answer is entered in prompt mode.
11 | IconGood = Styler(FGGreen)("v")
12 |
13 | // IconWarn is the icon used when a good, but potentially invalid answer is entered in prompt mode.
14 | IconWarn = Styler(FGYellow)("!")
15 |
16 | // IconBad is the icon used when a bad answer is entered in prompt mode.
17 | IconBad = Styler(FGRed)("x")
18 |
19 | // IconSelect is the icon used to identify the currently selected item in select mode.
20 | IconSelect = Styler(FGBold)(">")
21 | )
22 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-colorable/colorable_others.go:
--------------------------------------------------------------------------------
1 | //go:build !windows || appengine
2 | // +build !windows appengine
3 |
4 | package colorable
5 |
6 | import (
7 | "io"
8 | "os"
9 |
10 | _ "github.com/mattn/go-isatty"
11 | )
12 |
13 | // NewColorable returns new instance of Writer which handles escape sequence.
14 | func NewColorable(file *os.File) io.Writer {
15 | if file == nil {
16 | panic("nil passed instead of *os.File to NewColorable()")
17 | }
18 |
19 | return file
20 | }
21 |
22 | // NewColorableStdout returns new instance of Writer which handles escape sequence for stdout.
23 | func NewColorableStdout() io.Writer {
24 | return os.Stdout
25 | }
26 |
27 | // NewColorableStderr returns new instance of Writer which handles escape sequence for stderr.
28 | func NewColorableStderr() io.Writer {
29 | return os.Stderr
30 | }
31 |
32 | // EnableColorsStdout enable colors if possible.
33 | func EnableColorsStdout(enabled *bool) func() {
34 | if enabled != nil {
35 | *enabled = true
36 | }
37 | return func() {}
38 | }
39 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-colorable/go.test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -e
4 | echo "" > coverage.txt
5 |
6 | for d in $(go list ./... | grep -v vendor); do
7 | go test -race -coverprofile=profile.out -covermode=atomic "$d"
8 | if [ -f profile.out ]; then
9 | cat profile.out >> coverage.txt
10 | rm profile.out
11 | fi
12 | done
13 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/doc.go:
--------------------------------------------------------------------------------
1 | // Package isatty implements interface to isatty
2 | package isatty
3 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/go.test.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | set -e
4 | echo "" > coverage.txt
5 |
6 | for d in $(go list ./... | grep -v vendor); do
7 | go test -race -coverprofile=profile.out -covermode=atomic "$d"
8 | if [ -f profile.out ]; then
9 | cat profile.out >> coverage.txt
10 | rm profile.out
11 | fi
12 | done
13 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/isatty_bsd.go:
--------------------------------------------------------------------------------
1 | //go:build (darwin || freebsd || openbsd || netbsd || dragonfly || hurd) && !appengine && !tinygo
2 | // +build darwin freebsd openbsd netbsd dragonfly hurd
3 | // +build !appengine
4 | // +build !tinygo
5 |
6 | package isatty
7 |
8 | import "golang.org/x/sys/unix"
9 |
10 | // IsTerminal return true if the file descriptor is terminal.
11 | func IsTerminal(fd uintptr) bool {
12 | _, err := unix.IoctlGetTermios(int(fd), unix.TIOCGETA)
13 | return err == nil
14 | }
15 |
16 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
17 | // terminal. This is also always false on this environment.
18 | func IsCygwinTerminal(fd uintptr) bool {
19 | return false
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/isatty_others.go:
--------------------------------------------------------------------------------
1 | //go:build (appengine || js || nacl || tinygo || wasm) && !windows
2 | // +build appengine js nacl tinygo wasm
3 | // +build !windows
4 |
5 | package isatty
6 |
7 | // IsTerminal returns true if the file descriptor is terminal which
8 | // is always false on js and appengine classic which is a sandboxed PaaS.
9 | func IsTerminal(fd uintptr) bool {
10 | return false
11 | }
12 |
13 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2
14 | // terminal. This is also always false on this environment.
15 | func IsCygwinTerminal(fd uintptr) bool {
16 | return false
17 | }
18 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/isatty_plan9.go:
--------------------------------------------------------------------------------
1 | //go:build plan9
2 | // +build plan9
3 |
4 | package isatty
5 |
6 | import (
7 | "syscall"
8 | )
9 |
10 | // IsTerminal returns true if the given file descriptor is a terminal.
11 | func IsTerminal(fd uintptr) bool {
12 | path, err := syscall.Fd2path(int(fd))
13 | if err != nil {
14 | return false
15 | }
16 | return path == "/dev/cons" || path == "/mnt/term/dev/cons"
17 | }
18 |
19 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
20 | // terminal. This is also always false on this environment.
21 | func IsCygwinTerminal(fd uintptr) bool {
22 | return false
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/isatty_solaris.go:
--------------------------------------------------------------------------------
1 | //go:build solaris && !appengine
2 | // +build solaris,!appengine
3 |
4 | package isatty
5 |
6 | import (
7 | "golang.org/x/sys/unix"
8 | )
9 |
10 | // IsTerminal returns true if the given file descriptor is a terminal.
11 | // see: https://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libc/port/gen/isatty.c
12 | func IsTerminal(fd uintptr) bool {
13 | _, err := unix.IoctlGetTermio(int(fd), unix.TCGETA)
14 | return err == nil
15 | }
16 |
17 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
18 | // terminal. This is also always false on this environment.
19 | func IsCygwinTerminal(fd uintptr) bool {
20 | return false
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/mattn/go-isatty/isatty_tcgets.go:
--------------------------------------------------------------------------------
1 | //go:build (linux || aix || zos) && !appengine && !tinygo
2 | // +build linux aix zos
3 | // +build !appengine
4 | // +build !tinygo
5 |
6 | package isatty
7 |
8 | import "golang.org/x/sys/unix"
9 |
10 | // IsTerminal return true if the file descriptor is terminal.
11 | func IsTerminal(fd uintptr) bool {
12 | _, err := unix.IoctlGetTermios(int(fd), unix.TCGETS)
13 | return err == nil
14 | }
15 |
16 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2
17 | // terminal. This is also always false on this environment.
18 | func IsCygwinTerminal(fd uintptr) bool {
19 | return false
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/colorstring/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
3 | go:
4 | - 1.0
5 | - 1.1
6 | - 1.2
7 | - 1.3
8 | - tip
9 |
10 | script:
11 | - go test
12 |
13 | matrix:
14 | allow_failures:
15 | - go: tip
16 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/colorstring/README.md:
--------------------------------------------------------------------------------
1 | # colorstring [](https://travis-ci.org/mitchellh/colorstring)
2 |
3 | colorstring is a [Go](http://www.golang.org) library for outputting colored
4 | strings to a console using a simple inline syntax in your string to specify
5 | the color to print as.
6 |
7 | For example, the string `[blue]hello [red]world` would output the text
8 | "hello world" in two colors. The API of colorstring allows for easily disabling
9 | colors, adding aliases, etc.
10 |
11 | ## Installation
12 |
13 | Standard `go get`:
14 |
15 | ```
16 | $ go get github.com/mitchellh/colorstring
17 | ```
18 |
19 | ## Usage & Example
20 |
21 | For usage and examples see the [Godoc](http://godoc.org/github.com/mitchellh/colorstring).
22 |
23 | Usage is easy enough:
24 |
25 | ```go
26 | colorstring.Println("[blue]Hello [red]World!")
27 | ```
28 |
29 | Additionally, the `Colorize` struct can be used to set options such as
30 | custom colors, color disabling, etc.
31 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/copystructure/README.md:
--------------------------------------------------------------------------------
1 | # copystructure
2 |
3 | copystructure is a Go library for deep copying values in Go.
4 |
5 | This allows you to copy Go values that may contain reference values
6 | such as maps, slices, or pointers, and copy their data as well instead
7 | of just their references.
8 |
9 | ## Installation
10 |
11 | Standard `go get`:
12 |
13 | ```
14 | $ go get github.com/mitchellh/copystructure
15 | ```
16 |
17 | ## Usage & Example
18 |
19 | For usage and examples see the [Godoc](http://godoc.org/github.com/mitchellh/copystructure).
20 |
21 | The `Copy` function has examples associated with it there.
22 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/copystructure/copier_time.go:
--------------------------------------------------------------------------------
1 | package copystructure
2 |
3 | import (
4 | "reflect"
5 | "time"
6 | )
7 |
8 | func init() {
9 | Copiers[reflect.TypeOf(time.Time{})] = timeCopier
10 | }
11 |
12 | func timeCopier(v interface{}) (interface{}, error) {
13 | // Just... copy it.
14 | return v.(time.Time), nil
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/reflectwalk/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/reflectwalk/README.md:
--------------------------------------------------------------------------------
1 | # reflectwalk
2 |
3 | reflectwalk is a Go library for "walking" a value in Go using reflection,
4 | in the same way a directory tree can be "walked" on the filesystem. Walking
5 | a complex structure can allow you to do manipulations on unknown structures
6 | such as those decoded from JSON.
7 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/reflectwalk/location.go:
--------------------------------------------------------------------------------
1 | package reflectwalk
2 |
3 | //go:generate stringer -type=Location location.go
4 |
5 | type Location uint
6 |
7 | const (
8 | None Location = iota
9 | Map
10 | MapKey
11 | MapValue
12 | Slice
13 | SliceElem
14 | Array
15 | ArrayElem
16 | Struct
17 | StructField
18 | WalkLoc
19 | )
20 |
--------------------------------------------------------------------------------
/vendor/github.com/mitchellh/reflectwalk/location_string.go:
--------------------------------------------------------------------------------
1 | // Code generated by "stringer -type=Location location.go"; DO NOT EDIT.
2 |
3 | package reflectwalk
4 |
5 | import "fmt"
6 |
7 | const _Location_name = "NoneMapMapKeyMapValueSliceSliceElemArrayArrayElemStructStructFieldWalkLoc"
8 |
9 | var _Location_index = [...]uint8{0, 4, 7, 13, 21, 26, 35, 40, 49, 55, 66, 73}
10 |
11 | func (i Location) String() string {
12 | if i >= Location(len(_Location_index)-1) {
13 | return fmt.Sprintf("Location(%d)", i)
14 | }
15 | return _Location_name[_Location_index[i]:_Location_index[i+1]]
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/github.com/pelletier/go-toml/v2/.dockerignore:
--------------------------------------------------------------------------------
1 | cmd/tomll/tomll
2 | cmd/tomljson/tomljson
3 |
--------------------------------------------------------------------------------
/vendor/github.com/pelletier/go-toml/v2/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
2 |
3 | benchmark/benchmark.toml text eol=lf
4 | testdata/** text eol=lf
5 |
--------------------------------------------------------------------------------
/vendor/github.com/pelletier/go-toml/v2/.gitignore:
--------------------------------------------------------------------------------
1 | test_program/test_program_bin
2 | fuzz/
3 | cmd/tomll/tomll
4 | cmd/tomljson/tomljson
5 | cmd/tomltestgen/tomltestgen
6 | dist
7 | tests/
8 |
--------------------------------------------------------------------------------
/vendor/github.com/pelletier/go-toml/v2/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM scratch
2 | ENV PATH "$PATH:/bin"
3 | COPY tomll /bin/tomll
4 | COPY tomljson /bin/tomljson
5 | COPY jsontoml /bin/jsontoml
6 |
--------------------------------------------------------------------------------
/vendor/github.com/pelletier/go-toml/v2/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | ## Supported Versions
4 |
5 | | Version | Supported |
6 | | ---------- | ------------------ |
7 | | Latest 2.x | :white_check_mark: |
8 | | All 1.x | :x: |
9 | | All 0.x | :x: |
10 |
11 | ## Reporting a Vulnerability
12 |
13 | Email a vulnerability report to `security@pelletier.codes`. Make sure to include
14 | as many details as possible to reproduce the vulnerability. This is a
15 | side-project: I will try to get back to you as quickly as possible, time
16 | permitting in my personal life. Providing a working patch helps very much!
17 |
--------------------------------------------------------------------------------
/vendor/github.com/pelletier/go-toml/v2/doc.go:
--------------------------------------------------------------------------------
1 | // Package toml is a library to read and write TOML documents.
2 | package toml
3 |
--------------------------------------------------------------------------------
/vendor/github.com/pelletier/go-toml/v2/internal/characters/ascii.go:
--------------------------------------------------------------------------------
1 | package characters
2 |
3 | var invalidAsciiTable = [256]bool{
4 | 0x00: true,
5 | 0x01: true,
6 | 0x02: true,
7 | 0x03: true,
8 | 0x04: true,
9 | 0x05: true,
10 | 0x06: true,
11 | 0x07: true,
12 | 0x08: true,
13 | // 0x09 TAB
14 | // 0x0A LF
15 | 0x0B: true,
16 | 0x0C: true,
17 | // 0x0D CR
18 | 0x0E: true,
19 | 0x0F: true,
20 | 0x10: true,
21 | 0x11: true,
22 | 0x12: true,
23 | 0x13: true,
24 | 0x14: true,
25 | 0x15: true,
26 | 0x16: true,
27 | 0x17: true,
28 | 0x18: true,
29 | 0x19: true,
30 | 0x1A: true,
31 | 0x1B: true,
32 | 0x1C: true,
33 | 0x1D: true,
34 | 0x1E: true,
35 | 0x1F: true,
36 | // 0x20 - 0x7E Printable ASCII characters
37 | 0x7F: true,
38 | }
39 |
40 | func InvalidAscii(b byte) bool {
41 | return invalidAsciiTable[b]
42 | }
43 |
--------------------------------------------------------------------------------
/vendor/github.com/pelletier/go-toml/v2/internal/danger/typeid.go:
--------------------------------------------------------------------------------
1 | package danger
2 |
3 | import (
4 | "reflect"
5 | "unsafe"
6 | )
7 |
8 | // typeID is used as key in encoder and decoder caches to enable using
9 | // the optimize runtime.mapaccess2_fast64 function instead of the more
10 | // expensive lookup if we were to use reflect.Type as map key.
11 | //
12 | // typeID holds the pointer to the reflect.Type value, which is unique
13 | // in the program.
14 | //
15 | // https://github.com/segmentio/encoding/blob/master/json/codec.go#L59-L61
16 | type TypeID unsafe.Pointer
17 |
18 | func MakeTypeID(t reflect.Type) TypeID {
19 | // reflect.Type has the fields:
20 | // typ unsafe.Pointer
21 | // ptr unsafe.Pointer
22 | return TypeID((*[2]unsafe.Pointer)(unsafe.Pointer(&t))[1])
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/github.com/pelletier/go-toml/v2/internal/tracker/tracker.go:
--------------------------------------------------------------------------------
1 | package tracker
2 |
--------------------------------------------------------------------------------
/vendor/github.com/pelletier/go-toml/v2/types.go:
--------------------------------------------------------------------------------
1 | package toml
2 |
3 | import (
4 | "encoding"
5 | "reflect"
6 | "time"
7 | )
8 |
9 | var timeType = reflect.TypeOf((*time.Time)(nil)).Elem()
10 | var textMarshalerType = reflect.TypeOf((*encoding.TextMarshaler)(nil)).Elem()
11 | var textUnmarshalerType = reflect.TypeOf((*encoding.TextUnmarshaler)(nil)).Elem()
12 | var mapStringInterfaceType = reflect.TypeOf(map[string]interface{}(nil))
13 | var sliceInterfaceType = reflect.TypeOf([]interface{}(nil))
14 | var stringType = reflect.TypeOf("")
15 |
--------------------------------------------------------------------------------
/vendor/github.com/pelletier/go-toml/v2/unstable/doc.go:
--------------------------------------------------------------------------------
1 | // Package unstable provides APIs that do not meet the backward compatibility
2 | // guarantees yet.
3 | package unstable
4 |
--------------------------------------------------------------------------------
/vendor/github.com/pelletier/go-toml/v2/unstable/unmarshaler.go:
--------------------------------------------------------------------------------
1 | package unstable
2 |
3 | // The Unmarshaler interface may be implemented by types to customize their
4 | // behavior when being unmarshaled from a TOML document.
5 | type Unmarshaler interface {
6 | UnmarshalTOML(value *Node) error
7 | }
8 |
--------------------------------------------------------------------------------
/vendor/github.com/pkg/errors/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiled Object files, Static and Dynamic libs (Shared Objects)
2 | *.o
3 | *.a
4 | *.so
5 |
6 | # Folders
7 | _obj
8 | _test
9 |
10 | # Architecture specific extensions/prefixes
11 | *.[568vq]
12 | [568vq].out
13 |
14 | *.cgo1.go
15 | *.cgo2.c
16 | _cgo_defun.c
17 | _cgo_gotypes.go
18 | _cgo_export.*
19 |
20 | _testmain.go
21 |
22 | *.exe
23 | *.test
24 | *.prof
25 |
--------------------------------------------------------------------------------
/vendor/github.com/pkg/errors/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | go_import_path: github.com/pkg/errors
3 | go:
4 | - 1.11.x
5 | - 1.12.x
6 | - 1.13.x
7 | - tip
8 |
9 | script:
10 | - make check
11 |
--------------------------------------------------------------------------------
/vendor/github.com/pkg/errors/Makefile:
--------------------------------------------------------------------------------
1 | PKGS := github.com/pkg/errors
2 | SRCDIRS := $(shell go list -f '{{.Dir}}' $(PKGS))
3 | GO := go
4 |
5 | check: test vet gofmt misspell unconvert staticcheck ineffassign unparam
6 |
7 | test:
8 | $(GO) test $(PKGS)
9 |
10 | vet: | test
11 | $(GO) vet $(PKGS)
12 |
13 | staticcheck:
14 | $(GO) get honnef.co/go/tools/cmd/staticcheck
15 | staticcheck -checks all $(PKGS)
16 |
17 | misspell:
18 | $(GO) get github.com/client9/misspell/cmd/misspell
19 | misspell \
20 | -locale GB \
21 | -error \
22 | *.md *.go
23 |
24 | unconvert:
25 | $(GO) get github.com/mdempsky/unconvert
26 | unconvert -v $(PKGS)
27 |
28 | ineffassign:
29 | $(GO) get github.com/gordonklaus/ineffassign
30 | find $(SRCDIRS) -name '*.go' | xargs ineffassign
31 |
32 | pedantic: check errcheck
33 |
34 | unparam:
35 | $(GO) get mvdan.cc/unparam
36 | unparam ./...
37 |
38 | errcheck:
39 | $(GO) get github.com/kisielk/errcheck
40 | errcheck $(PKGS)
41 |
42 | gofmt:
43 | @echo Checking code is gofmted
44 | @test -z "$(shell gofmt -s -l -d -e $(SRCDIRS) | tee /dev/stderr)"
45 |
--------------------------------------------------------------------------------
/vendor/github.com/pkg/errors/appveyor.yml:
--------------------------------------------------------------------------------
1 | version: build-{build}.{branch}
2 |
3 | clone_folder: C:\gopath\src\github.com\pkg\errors
4 | shallow_clone: true # for startup speed
5 |
6 | environment:
7 | GOPATH: C:\gopath
8 |
9 | platform:
10 | - x64
11 |
12 | # http://www.appveyor.com/docs/installed-software
13 | install:
14 | # some helpful output for debugging builds
15 | - go version
16 | - go env
17 | # pre-installed MinGW at C:\MinGW is 32bit only
18 | # but MSYS2 at C:\msys64 has mingw64
19 | - set PATH=C:\msys64\mingw64\bin;%PATH%
20 | - gcc --version
21 | - g++ --version
22 |
23 | build_script:
24 | - go install -v ./...
25 |
26 | test_script:
27 | - set PATH=C:\gopath\bin;%PATH%
28 | - go test -v ./...
29 |
30 | #artifacts:
31 | # - path: '%GOPATH%\bin\*.exe'
32 | deploy: off
33 |
--------------------------------------------------------------------------------
/vendor/github.com/sagikazarmark/locafero/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | indent_size = 4
7 | indent_style = space
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [{Makefile,*.mk}]
12 | indent_style = tab
13 |
14 | [*.nix]
15 | indent_size = 2
16 |
17 | [*.go]
18 | indent_style = tab
19 |
20 | [{*.yml,*.yaml}]
21 | indent_size = 2
22 |
--------------------------------------------------------------------------------
/vendor/github.com/sagikazarmark/locafero/.envrc:
--------------------------------------------------------------------------------
1 | if ! has nix_direnv_version || ! nix_direnv_version 3.0.4; then
2 | source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.4/direnvrc" "sha256-DzlYZ33mWF/Gs8DDeyjr8mnVmQGx7ASYqA5WlxwvBG4="
3 | fi
4 | use flake . --impure
5 |
--------------------------------------------------------------------------------
/vendor/github.com/sagikazarmark/locafero/.gitignore:
--------------------------------------------------------------------------------
1 | /.devenv/
2 | /.direnv/
3 | /.task/
4 | /bin/
5 | /build/
6 | /tmp/
7 | /var/
8 | /vendor/
9 |
--------------------------------------------------------------------------------
/vendor/github.com/sagikazarmark/locafero/.golangci.yaml:
--------------------------------------------------------------------------------
1 | run:
2 | timeout: 10m
3 |
4 | linters-settings:
5 | gci:
6 | sections:
7 | - standard
8 | - default
9 | - prefix(github.com/sagikazarmark/locafero)
10 | goimports:
11 | local-prefixes: github.com/sagikazarmark/locafero
12 | misspell:
13 | locale: US
14 | nolintlint:
15 | allow-leading-space: false # require machine-readable nolint directives (with no leading space)
16 | allow-unused: false # report any unused nolint directives
17 | require-specific: false # don't require nolint directives to be specific about which linter is being skipped
18 | revive:
19 | confidence: 0
20 |
21 | linters:
22 | enable:
23 | - gci
24 | - goimports
25 | - misspell
26 | - nolintlint
27 | - revive
28 |
--------------------------------------------------------------------------------
/vendor/github.com/sagikazarmark/locafero/file_type.go:
--------------------------------------------------------------------------------
1 | package locafero
2 |
3 | import "io/fs"
4 |
5 | // FileType represents the kind of entries [Finder] can return.
6 | type FileType int
7 |
8 | const (
9 | FileTypeAll FileType = iota
10 | FileTypeFile
11 | FileTypeDir
12 | )
13 |
14 | func (ft FileType) matchFileInfo(info fs.FileInfo) bool {
15 | switch ft {
16 | case FileTypeAll:
17 | return true
18 |
19 | case FileTypeFile:
20 | return !info.IsDir()
21 |
22 | case FileTypeDir:
23 | return info.IsDir()
24 |
25 | default:
26 | return false
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/github.com/sagikazarmark/locafero/glob.go:
--------------------------------------------------------------------------------
1 | //go:build !windows
2 |
3 | package locafero
4 |
5 | const globMatch = "*?[]\\^"
6 |
--------------------------------------------------------------------------------
/vendor/github.com/sagikazarmark/locafero/glob_windows.go:
--------------------------------------------------------------------------------
1 | //go:build windows
2 |
3 | package locafero
4 |
5 | // See [filepath.Match]:
6 | //
7 | // On Windows, escaping is disabled. Instead, '\\' is treated as path separator.
8 | const globMatch = "*?[]^"
9 |
--------------------------------------------------------------------------------
/vendor/github.com/sagikazarmark/locafero/justfile:
--------------------------------------------------------------------------------
1 | default:
2 | just --list
3 |
4 | test:
5 | go test -race -v ./...
6 |
7 | lint:
8 | golangci-lint run
9 |
10 | fmt:
11 | golangci-lint run --fix
12 |
--------------------------------------------------------------------------------
/vendor/github.com/sagikazarmark/slog-shim/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | indent_size = 4
7 | indent_style = space
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.nix]
12 | indent_size = 2
13 |
14 | [{Makefile,*.mk}]
15 | indent_style = tab
16 |
17 | [Taskfile.yaml]
18 | indent_size = 2
19 |
--------------------------------------------------------------------------------
/vendor/github.com/sagikazarmark/slog-shim/.envrc:
--------------------------------------------------------------------------------
1 | if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then
2 | source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
3 | fi
4 | use flake . --impure
5 |
--------------------------------------------------------------------------------
/vendor/github.com/sagikazarmark/slog-shim/.gitignore:
--------------------------------------------------------------------------------
1 | /.devenv/
2 | /.direnv/
3 | /.task/
4 | /build/
5 |
--------------------------------------------------------------------------------
/vendor/github.com/sagikazarmark/slog-shim/json_handler.go:
--------------------------------------------------------------------------------
1 | // Copyright 2022 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build go1.21
6 |
7 | package slog
8 |
9 | import (
10 | "io"
11 | "log/slog"
12 | )
13 |
14 | // JSONHandler is a Handler that writes Records to an io.Writer as
15 | // line-delimited JSON objects.
16 | type JSONHandler = slog.JSONHandler
17 |
18 | // NewJSONHandler creates a JSONHandler that writes to w,
19 | // using the given options.
20 | // If opts is nil, the default options are used.
21 | func NewJSONHandler(w io.Writer, opts *HandlerOptions) *JSONHandler {
22 | return slog.NewJSONHandler(w, opts)
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/github.com/sagikazarmark/slog-shim/json_handler_120.go:
--------------------------------------------------------------------------------
1 | // Copyright 2022 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build !go1.21
6 |
7 | package slog
8 |
9 | import (
10 | "io"
11 |
12 | "golang.org/x/exp/slog"
13 | )
14 |
15 | // JSONHandler is a Handler that writes Records to an io.Writer as
16 | // line-delimited JSON objects.
17 | type JSONHandler = slog.JSONHandler
18 |
19 | // NewJSONHandler creates a JSONHandler that writes to w,
20 | // using the given options.
21 | // If opts is nil, the default options are used.
22 | func NewJSONHandler(w io.Writer, opts *HandlerOptions) *JSONHandler {
23 | return slog.NewJSONHandler(w, opts)
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/github.com/sagikazarmark/slog-shim/record.go:
--------------------------------------------------------------------------------
1 | // Copyright 2022 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build go1.21
6 |
7 | package slog
8 |
9 | import (
10 | "log/slog"
11 | "time"
12 | )
13 |
14 | // A Record holds information about a log event.
15 | // Copies of a Record share state.
16 | // Do not modify a Record after handing out a copy to it.
17 | // Call [NewRecord] to create a new Record.
18 | // Use [Record.Clone] to create a copy with no shared state.
19 | type Record = slog.Record
20 |
21 | // NewRecord creates a Record from the given arguments.
22 | // Use [Record.AddAttrs] to add attributes to the Record.
23 | //
24 | // NewRecord is intended for logging APIs that want to support a [Handler] as
25 | // a backend.
26 | func NewRecord(t time.Time, level Level, msg string, pc uintptr) Record {
27 | return slog.NewRecord(t, level, msg, pc)
28 | }
29 |
30 | // Source describes the location of a line of source code.
31 | type Source = slog.Source
32 |
--------------------------------------------------------------------------------
/vendor/github.com/sagikazarmark/slog-shim/record_120.go:
--------------------------------------------------------------------------------
1 | // Copyright 2022 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build !go1.21
6 |
7 | package slog
8 |
9 | import (
10 | "time"
11 |
12 | "golang.org/x/exp/slog"
13 | )
14 |
15 | // A Record holds information about a log event.
16 | // Copies of a Record share state.
17 | // Do not modify a Record after handing out a copy to it.
18 | // Call [NewRecord] to create a new Record.
19 | // Use [Record.Clone] to create a copy with no shared state.
20 | type Record = slog.Record
21 |
22 | // NewRecord creates a Record from the given arguments.
23 | // Use [Record.AddAttrs] to add attributes to the Record.
24 | //
25 | // NewRecord is intended for logging APIs that want to support a [Handler] as
26 | // a backend.
27 | func NewRecord(t time.Time, level Level, msg string, pc uintptr) Record {
28 | return slog.NewRecord(t, level, msg, pc)
29 | }
30 |
31 | // Source describes the location of a line of source code.
32 | type Source = slog.Source
33 |
--------------------------------------------------------------------------------
/vendor/github.com/sagikazarmark/slog-shim/text_handler.go:
--------------------------------------------------------------------------------
1 | // Copyright 2022 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build go1.21
6 |
7 | package slog
8 |
9 | import (
10 | "io"
11 | "log/slog"
12 | )
13 |
14 | // TextHandler is a Handler that writes Records to an io.Writer as a
15 | // sequence of key=value pairs separated by spaces and followed by a newline.
16 | type TextHandler = slog.TextHandler
17 |
18 | // NewTextHandler creates a TextHandler that writes to w,
19 | // using the given options.
20 | // If opts is nil, the default options are used.
21 | func NewTextHandler(w io.Writer, opts *HandlerOptions) *TextHandler {
22 | return slog.NewTextHandler(w, opts)
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/github.com/sagikazarmark/slog-shim/text_handler_120.go:
--------------------------------------------------------------------------------
1 | // Copyright 2022 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build !go1.21
6 |
7 | package slog
8 |
9 | import (
10 | "io"
11 |
12 | "golang.org/x/exp/slog"
13 | )
14 |
15 | // TextHandler is a Handler that writes Records to an io.Writer as a
16 | // sequence of key=value pairs separated by spaces and followed by a newline.
17 | type TextHandler = slog.TextHandler
18 |
19 | // NewTextHandler creates a TextHandler that writes to w,
20 | // using the given options.
21 | // If opts is nil, the default options are used.
22 | func NewTextHandler(w io.Writer, opts *HandlerOptions) *TextHandler {
23 | return slog.NewTextHandler(w, opts)
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/github.com/samber/lo/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | # Created by https://www.toptal.com/developers/gitignore/api/go
3 | # Edit at https://www.toptal.com/developers/gitignore?templates=go
4 |
5 | ### Go ###
6 | # If you prefer the allow list template instead of the deny list, see community template:
7 | # https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
8 | #
9 | # Binaries for programs and plugins
10 | *.exe
11 | *.exe~
12 | *.dll
13 | *.so
14 | *.dylib
15 |
16 | # Test binary, built with `go test -c`
17 | *.test
18 |
19 | # Output of the go coverage tool, specifically when used with LiteIDE
20 | *.out
21 |
22 | # Dependency directories (remove the comment below to include it)
23 | # vendor/
24 |
25 | # Go workspace file
26 | go.work
27 |
28 | ### Go Patch ###
29 | /vendor/
30 | /Godeps/
31 |
32 | # End of https://www.toptal.com/developers/gitignore/api/go
33 |
34 | cover.out
35 | cover.html
36 | .vscode
37 |
38 | .idea/
39 |
--------------------------------------------------------------------------------
/vendor/github.com/samber/lo/Dockerfile:
--------------------------------------------------------------------------------
1 |
2 | FROM golang:1.23.1
3 |
4 | WORKDIR /go/src/github.com/samber/lo
5 |
6 | COPY Makefile go.* ./
7 |
8 | RUN make tools
9 |
--------------------------------------------------------------------------------
/vendor/github.com/samber/lo/constraints.go:
--------------------------------------------------------------------------------
1 | package lo
2 |
3 | // Clonable defines a constraint of types having Clone() T method.
4 | type Clonable[T any] interface {
5 | Clone() T
6 | }
7 |
--------------------------------------------------------------------------------
/vendor/github.com/samber/lo/internal/constraints/ordered_go118.go:
--------------------------------------------------------------------------------
1 | //go:build !go1.21
2 |
3 | package constraints
4 |
5 | // Ordered is a constraint that permits any ordered type: any type
6 | // that supports the operators < <= >= >.
7 | // If future releases of Go add new ordered types,
8 | // this constraint will be modified to include them.
9 | type Ordered interface {
10 | Integer | Float | ~string
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/github.com/samber/lo/internal/constraints/ordered_go121.go:
--------------------------------------------------------------------------------
1 | //go:build go1.21
2 |
3 | package constraints
4 |
5 | import (
6 | "cmp"
7 | )
8 |
9 | type Ordered = cmp.Ordered
10 |
--------------------------------------------------------------------------------
/vendor/github.com/samber/lo/internal/rand/ordered_go118.go:
--------------------------------------------------------------------------------
1 | //go:build !go1.22
2 |
3 | package rand
4 |
5 | import "math/rand"
6 |
7 | func Shuffle(n int, swap func(i, j int)) {
8 | rand.Shuffle(n, swap)
9 | }
10 |
11 | func IntN(n int) int {
12 | // bearer:disable go_gosec_crypto_weak_random
13 | return rand.Intn(n)
14 | }
15 |
16 | func Int64() int64 {
17 | // bearer:disable go_gosec_crypto_weak_random
18 | n := rand.Int63()
19 |
20 | // bearer:disable go_gosec_crypto_weak_random
21 | if rand.Intn(2) == 0 {
22 | return -n
23 | }
24 |
25 | return n
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/github.com/samber/lo/internal/rand/ordered_go122.go:
--------------------------------------------------------------------------------
1 | //go:build go1.22
2 |
3 | package rand
4 |
5 | import "math/rand/v2"
6 |
7 | func Shuffle(n int, swap func(i, j int)) {
8 | rand.Shuffle(n, swap)
9 | }
10 |
11 | func IntN(n int) int {
12 | return rand.IntN(n)
13 | }
14 |
15 | func Int64() int64 {
16 | return rand.Int64()
17 | }
18 |
--------------------------------------------------------------------------------
/vendor/github.com/samber/lo/mutable/slice.go:
--------------------------------------------------------------------------------
1 | package mutable
2 |
3 | import "github.com/samber/lo/internal/rand"
4 |
5 | // Shuffle returns an array of shuffled values. Uses the Fisher-Yates shuffle algorithm.
6 | // Play: https://go.dev/play/p/ZTGG7OUCdnp
7 | func Shuffle[T any, Slice ~[]T](collection Slice) {
8 | rand.Shuffle(len(collection), func(i, j int) {
9 | collection[i], collection[j] = collection[j], collection[i]
10 | })
11 | }
12 |
13 | // Reverse reverses array so that the first element becomes the last, the second element becomes the second to last, and so on.
14 | // Play: https://go.dev/play/p/iv2e9jslfBM
15 | func Reverse[T any, Slice ~[]T](collection Slice) {
16 | length := len(collection)
17 | half := length / 2
18 |
19 | for i := 0; i < half; i = i + 1 {
20 | j := length - 1 - i
21 | collection[i], collection[j] = collection[j], collection[i]
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/github.com/schollz/progressbar/v3/.gitignore:
--------------------------------------------------------------------------------
1 | # Binaries for programs and plugins
2 | *.exe
3 | *.exe~
4 | *.dll
5 | *.so
6 | *.dylib
7 |
8 | # Test binary, built with `go test -c`
9 | *.test
10 |
11 | # Output of the go coverage tool, specifically when used with LiteIDE
12 | *.out
13 |
14 | # Dependency directories (remove the comment below to include it)
15 | # vendor/
16 |
17 | .idea/
18 | *.tar.gz
19 |
--------------------------------------------------------------------------------
/vendor/github.com/schollz/progressbar/v3/.golangci.yml:
--------------------------------------------------------------------------------
1 | run:
2 | timeout: 5m
3 | exclude-dirs:
4 | - vendor
5 | - examples
6 |
7 | linters:
8 | enable:
9 | - errcheck
10 | - gocyclo
11 | - gofmt
12 | - goimports
13 | - gosimple
14 | - govet
15 | - ineffassign
16 | - staticcheck
17 | - unused
18 |
19 | linters-settings:
20 | gocyclo:
21 | min-complexity: 20
--------------------------------------------------------------------------------
/vendor/github.com/schollz/progressbar/v3/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
3 | go:
4 | - tip
5 |
6 | script: go test -v .
7 |
--------------------------------------------------------------------------------
/vendor/github.com/shopspring/decimal/.gitignore:
--------------------------------------------------------------------------------
1 | .git
2 | *.swp
3 |
4 | # IntelliJ
5 | .idea/
6 | *.iml
7 |
8 | # VS code
9 | *.code-workspace
10 |
--------------------------------------------------------------------------------
/vendor/github.com/sourcegraph/conc/.golangci.yml:
--------------------------------------------------------------------------------
1 | linters:
2 | disable-all: true
3 | enable:
4 | - errcheck
5 | - godot
6 | - gosimple
7 | - govet
8 | - ineffassign
9 | - staticcheck
10 | - typecheck
11 | - unused
12 |
--------------------------------------------------------------------------------
/vendor/github.com/sourcegraph/conc/internal/multierror/multierror_go119.go:
--------------------------------------------------------------------------------
1 | //go:build !go1.20
2 | // +build !go1.20
3 |
4 | package multierror
5 |
6 | import "go.uber.org/multierr"
7 |
8 | var (
9 | Join = multierr.Combine
10 | )
11 |
--------------------------------------------------------------------------------
/vendor/github.com/sourcegraph/conc/internal/multierror/multierror_go120.go:
--------------------------------------------------------------------------------
1 | //go:build go1.20
2 | // +build go1.20
3 |
4 | package multierror
5 |
6 | import "errors"
7 |
8 | var (
9 | Join = errors.Join
10 | )
11 |
--------------------------------------------------------------------------------
/vendor/github.com/sourcegraph/conc/panics/try.go:
--------------------------------------------------------------------------------
1 | package panics
2 |
3 | // Try executes f, catching and returning any panic it might spawn.
4 | //
5 | // The recovered panic can be propagated with panic(), or handled as a normal error with
6 | // (*panics.Recovered).AsError().
7 | func Try(f func()) *Recovered {
8 | var c Catcher
9 | c.Try(f)
10 | return c.Recovered()
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/afero/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | indent_size = 4
7 | indent_style = space
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.go]
12 | indent_style = tab
13 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/afero/.gitignore:
--------------------------------------------------------------------------------
1 | sftpfs/file1
2 | sftpfs/test/
3 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/afero/.golangci.yaml:
--------------------------------------------------------------------------------
1 | linters-settings:
2 | gci:
3 | sections:
4 | - standard
5 | - default
6 | - prefix(github.com/spf13/afero)
7 |
8 | linters:
9 | disable-all: true
10 | enable:
11 | - gci
12 | - gofmt
13 | - gofumpt
14 | - staticcheck
15 |
16 | issues:
17 | exclude-dirs:
18 | - gcsfs/internal/stiface
19 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/afero/appveyor.yml:
--------------------------------------------------------------------------------
1 | # This currently does nothing. We have moved to GitHub action, but this is kept
2 | # until spf13 has disabled this project in AppVeyor.
3 | version: '{build}'
4 | clone_folder: C:\gopath\src\github.com\spf13\afero
5 | environment:
6 | GOPATH: C:\gopath
7 | build_script:
8 | - cmd: >-
9 | go version
10 |
11 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/afero/const_bsds.go:
--------------------------------------------------------------------------------
1 | // Copyright © 2016 Steve Francia .
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 |
14 | //go:build aix || darwin || openbsd || freebsd || netbsd || dragonfly || zos
15 | // +build aix darwin openbsd freebsd netbsd dragonfly zos
16 |
17 | package afero
18 |
19 | import (
20 | "syscall"
21 | )
22 |
23 | const BADFD = syscall.EBADF
24 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/afero/const_win_unix.go:
--------------------------------------------------------------------------------
1 | // Copyright © 2016 Steve Francia .
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | // http://www.apache.org/licenses/LICENSE-2.0
7 | //
8 | // Unless required by applicable law or agreed to in writing, software
9 | // distributed under the License is distributed on an "AS IS" BASIS,
10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | // See the License for the specific language governing permissions and
12 | // limitations under the License.
13 | //go:build !darwin && !openbsd && !freebsd && !dragonfly && !netbsd && !aix && !zos
14 | // +build !darwin,!openbsd,!freebsd,!dragonfly,!netbsd,!aix,!zos
15 |
16 | package afero
17 |
18 | import (
19 | "syscall"
20 | )
21 |
22 | const BADFD = syscall.EBADFD
23 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/cast/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiled Object files, Static and Dynamic libs (Shared Objects)
2 | *.o
3 | *.a
4 | *.so
5 |
6 | # Folders
7 | _obj
8 | _test
9 |
10 | # Architecture specific extensions/prefixes
11 | *.[568vq]
12 | [568vq].out
13 |
14 | *.cgo1.go
15 | *.cgo2.c
16 | _cgo_defun.c
17 | _cgo_gotypes.go
18 | _cgo_export.*
19 |
20 | _testmain.go
21 |
22 | *.exe
23 | *.test
24 |
25 | *.bench
26 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/cast/timeformattype_string.go:
--------------------------------------------------------------------------------
1 | // Code generated by "stringer -type timeFormatType"; DO NOT EDIT.
2 |
3 | package cast
4 |
5 | import "strconv"
6 |
7 | func _() {
8 | // An "invalid array index" compiler error signifies that the constant values have changed.
9 | // Re-run the stringer command to generate them again.
10 | var x [1]struct{}
11 | _ = x[timeFormatNoTimezone-0]
12 | _ = x[timeFormatNamedTimezone-1]
13 | _ = x[timeFormatNumericTimezone-2]
14 | _ = x[timeFormatNumericAndNamedTimezone-3]
15 | _ = x[timeFormatTimeOnly-4]
16 | }
17 |
18 | const _timeFormatType_name = "timeFormatNoTimezonetimeFormatNamedTimezonetimeFormatNumericTimezonetimeFormatNumericAndNamedTimezonetimeFormatTimeOnly"
19 |
20 | var _timeFormatType_index = [...]uint8{0, 20, 43, 68, 101, 119}
21 |
22 | func (i timeFormatType) String() string {
23 | if i < 0 || i >= timeFormatType(len(_timeFormatType_index)-1) {
24 | return "timeFormatType(" + strconv.FormatInt(int64(i), 10) + ")"
25 | }
26 | return _timeFormatType_name[_timeFormatType_index[i]:_timeFormatType_index[i+1]]
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/cobra/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiled Object files, Static and Dynamic libs (Shared Objects)
2 | *.o
3 | *.a
4 | *.so
5 |
6 | # Folders
7 | _obj
8 | _test
9 |
10 | # Architecture specific extensions/prefixes
11 | *.[568vq]
12 | [568vq].out
13 |
14 | *.cgo1.go
15 | *.cgo2.c
16 | _cgo_defun.c
17 | _cgo_gotypes.go
18 | _cgo_export.*
19 |
20 | _testmain.go
21 |
22 | # Vim files https://github.com/github/gitignore/blob/master/Global/Vim.gitignore
23 | # swap
24 | [._]*.s[a-w][a-z]
25 | [._]s[a-w][a-z]
26 | # session
27 | Session.vim
28 | # temporary
29 | .netrwhist
30 | *~
31 | # auto-generated tag files
32 | tags
33 |
34 | *.exe
35 | cobra.test
36 | bin
37 |
38 | .idea/
39 | *.iml
40 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/cobra/.mailmap:
--------------------------------------------------------------------------------
1 | Steve Francia
2 | Bjørn Erik Pedersen
3 | Fabiano Franz
4 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/cobra/MAINTAINERS:
--------------------------------------------------------------------------------
1 | maintainers:
2 | - spf13
3 | - johnSchnake
4 | - jpmcb
5 | - marckhouzam
6 | inactive:
7 | - anthonyfok
8 | - bep
9 | - bogem
10 | - broady
11 | - eparis
12 | - jharshman
13 | - wfernandes
14 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/cobra/Makefile:
--------------------------------------------------------------------------------
1 | BIN="./bin"
2 | SRC=$(shell find . -name "*.go")
3 |
4 | ifeq (, $(shell which golangci-lint))
5 | $(warning "could not find golangci-lint in $(PATH), run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh")
6 | endif
7 |
8 | .PHONY: fmt lint test install_deps clean
9 |
10 | default: all
11 |
12 | all: fmt test
13 |
14 | fmt:
15 | $(info ******************** checking formatting ********************)
16 | @test -z $(shell gofmt -l $(SRC)) || (gofmt -d $(SRC); exit 1)
17 |
18 | lint:
19 | $(info ******************** running lint tools ********************)
20 | golangci-lint run -v
21 |
22 | test: install_deps
23 | $(info ******************** running tests ********************)
24 | go test -v ./...
25 |
26 | richtest: install_deps
27 | $(info ******************** running tests with kyoh86/richgo ********************)
28 | richgo test -v ./...
29 |
30 | install_deps:
31 | $(info ******************** downloading dependencies ********************)
32 | go get -v ./...
33 |
34 | clean:
35 | rm -rf $(BIN)
36 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/cobra/command_notwin.go:
--------------------------------------------------------------------------------
1 | // Copyright 2013-2023 The Cobra Authors
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 |
15 | //go:build !windows
16 | // +build !windows
17 |
18 | package cobra
19 |
20 | var preExecHookFn func(*Command)
21 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/pflag/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | indent_size = 4
7 | indent_style = space
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.go]
12 | indent_style = tab
13 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/pflag/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/*
2 |
3 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/pflag/.golangci.yaml:
--------------------------------------------------------------------------------
1 | linters:
2 | disable-all: true
3 | enable:
4 | - nolintlint
5 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/pflag/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: go
4 |
5 | go:
6 | - 1.9.x
7 | - 1.10.x
8 | - 1.11.x
9 | - tip
10 |
11 | matrix:
12 | allow_failures:
13 | - go: tip
14 |
15 | install:
16 | - go get golang.org/x/lint/golint
17 | - export PATH=$GOPATH/bin:$PATH
18 | - go install ./...
19 |
20 | script:
21 | - verify/all.sh -v
22 | - go test ./...
23 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/viper/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | indent_size = 4
7 | indent_style = space
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.go]
12 | indent_style = tab
13 |
14 | [{Makefile,*.mk}]
15 | indent_style = tab
16 |
17 | [*.nix]
18 | indent_size = 2
19 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/viper/.envrc:
--------------------------------------------------------------------------------
1 | if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then
2 | source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
3 | fi
4 | use flake . --impure
5 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/viper/.gitignore:
--------------------------------------------------------------------------------
1 | /.devenv/
2 | /.direnv/
3 | /.idea/
4 | /.pre-commit-config.yaml
5 | /bin/
6 | /build/
7 | /var/
8 | /vendor/
9 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/viper/.yamlignore:
--------------------------------------------------------------------------------
1 | # TODO: FIXME
2 | /.github/
3 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/viper/.yamllint.yaml:
--------------------------------------------------------------------------------
1 | ignore-from-file: [.gitignore, .yamlignore]
2 |
3 | extends: default
4 |
5 | rules:
6 | line-length: disable
7 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/viper/file_finder.go:
--------------------------------------------------------------------------------
1 | //go:build finder
2 |
3 | package viper
4 |
5 | import (
6 | "fmt"
7 |
8 | "github.com/sagikazarmark/locafero"
9 | )
10 |
11 | // Search all configPaths for any config file.
12 | // Returns the first path that exists (and is a config file).
13 | func (v *Viper) findConfigFile() (string, error) {
14 | var names []string
15 |
16 | if v.configType != "" {
17 | names = locafero.NameWithOptionalExtensions(v.configName, SupportedExts...)
18 | } else {
19 | names = locafero.NameWithExtensions(v.configName, SupportedExts...)
20 | }
21 |
22 | finder := locafero.Finder{
23 | Paths: v.configPaths,
24 | Names: names,
25 | Type: locafero.FileTypeFile,
26 | }
27 |
28 | results, err := finder.Find(v.fs)
29 | if err != nil {
30 | return "", err
31 | }
32 |
33 | if len(results) == 0 {
34 | return "", ConfigFileNotFoundError{v.configName, fmt.Sprintf("%s", v.configPaths)}
35 | }
36 |
37 | return results[0], nil
38 | }
39 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/viper/internal/encoding/error.go:
--------------------------------------------------------------------------------
1 | package encoding
2 |
3 | type encodingError string
4 |
5 | func (e encodingError) Error() string {
6 | return string(e)
7 | }
8 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/viper/internal/encoding/hcl/codec.go:
--------------------------------------------------------------------------------
1 | package hcl
2 |
3 | import (
4 | "bytes"
5 | "encoding/json"
6 |
7 | "github.com/hashicorp/hcl"
8 | "github.com/hashicorp/hcl/hcl/printer"
9 | )
10 |
11 | // Codec implements the encoding.Encoder and encoding.Decoder interfaces for HCL encoding.
12 | // TODO: add printer config to the codec?
13 | type Codec struct{}
14 |
15 | func (Codec) Encode(v map[string]any) ([]byte, error) {
16 | b, err := json.Marshal(v)
17 | if err != nil {
18 | return nil, err
19 | }
20 |
21 | // TODO: use printer.Format? Is the trailing newline an issue?
22 |
23 | ast, err := hcl.Parse(string(b))
24 | if err != nil {
25 | return nil, err
26 | }
27 |
28 | var buf bytes.Buffer
29 |
30 | err = printer.Fprint(&buf, ast.Node)
31 | if err != nil {
32 | return nil, err
33 | }
34 |
35 | return buf.Bytes(), nil
36 | }
37 |
38 | func (Codec) Decode(b []byte, v map[string]any) error {
39 | return hcl.Unmarshal(b, &v)
40 | }
41 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/viper/internal/encoding/json/codec.go:
--------------------------------------------------------------------------------
1 | package json
2 |
3 | import (
4 | "encoding/json"
5 | )
6 |
7 | // Codec implements the encoding.Encoder and encoding.Decoder interfaces for JSON encoding.
8 | type Codec struct{}
9 |
10 | func (Codec) Encode(v map[string]any) ([]byte, error) {
11 | // TODO: expose prefix and indent in the Codec as setting?
12 | return json.MarshalIndent(v, "", " ")
13 | }
14 |
15 | func (Codec) Decode(b []byte, v map[string]any) error {
16 | return json.Unmarshal(b, &v)
17 | }
18 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/viper/internal/encoding/toml/codec.go:
--------------------------------------------------------------------------------
1 | package toml
2 |
3 | import (
4 | "github.com/pelletier/go-toml/v2"
5 | )
6 |
7 | // Codec implements the encoding.Encoder and encoding.Decoder interfaces for TOML encoding.
8 | type Codec struct{}
9 |
10 | func (Codec) Encode(v map[string]any) ([]byte, error) {
11 | return toml.Marshal(v)
12 | }
13 |
14 | func (Codec) Decode(b []byte, v map[string]any) error {
15 | return toml.Unmarshal(b, &v)
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/viper/internal/encoding/yaml/codec.go:
--------------------------------------------------------------------------------
1 | package yaml
2 |
3 | import "gopkg.in/yaml.v3"
4 |
5 | // Codec implements the encoding.Encoder and encoding.Decoder interfaces for YAML encoding.
6 | type Codec struct{}
7 |
8 | func (Codec) Encode(v map[string]any) ([]byte, error) {
9 | return yaml.Marshal(v)
10 | }
11 |
12 | func (Codec) Decode(b []byte, v map[string]any) error {
13 | return yaml.Unmarshal(b, &v)
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/viper/internal/features/bind_struct.go:
--------------------------------------------------------------------------------
1 | //go:build viper_bind_struct
2 |
3 | package features
4 |
5 | const BindStruct = true
6 |
--------------------------------------------------------------------------------
/vendor/github.com/spf13/viper/internal/features/bind_struct_default.go:
--------------------------------------------------------------------------------
1 | //go:build !viper_bind_struct
2 |
3 | package features
4 |
5 | const BindStruct = false
6 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl:
--------------------------------------------------------------------------------
1 | {{.CommentFormat}}
2 | func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool {
3 | if h, ok := t.(tHelper); ok { h.Helper() }
4 | return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}})
5 | }
6 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl:
--------------------------------------------------------------------------------
1 | {{.CommentWithoutT "a"}}
2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool {
3 | if h, ok := a.t.(tHelper); ok { h.Helper() }
4 | return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}})
5 | }
6 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/assert/errors.go:
--------------------------------------------------------------------------------
1 | package assert
2 |
3 | import (
4 | "errors"
5 | )
6 |
7 | // AnError is an error instance useful for testing. If the code does not care
8 | // about error specifics, and only needs to return the error for example, this
9 | // error should be used to make the test code more readable.
10 | var AnError = errors.New("assert.AnError general error for testing")
11 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/assert/forward_assertions.go:
--------------------------------------------------------------------------------
1 | package assert
2 |
3 | // Assertions provides assertion methods around the
4 | // TestingT interface.
5 | type Assertions struct {
6 | t TestingT
7 | }
8 |
9 | // New makes a new Assertions object for the specified TestingT.
10 | func New(t TestingT) *Assertions {
11 | return &Assertions{
12 | t: t,
13 | }
14 | }
15 |
16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs"
17 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/assert/yaml/yaml_custom.go:
--------------------------------------------------------------------------------
1 | //go:build testify_yaml_custom && !testify_yaml_fail && !testify_yaml_default
2 | // +build testify_yaml_custom,!testify_yaml_fail,!testify_yaml_default
3 |
4 | // Package yaml is an implementation of YAML functions that calls a pluggable implementation.
5 | //
6 | // This implementation is selected with the testify_yaml_custom build tag.
7 | //
8 | // go test -tags testify_yaml_custom
9 | //
10 | // This implementation can be used at build time to replace the default implementation
11 | // to avoid linking with [gopkg.in/yaml.v3].
12 | //
13 | // In your test package:
14 | //
15 | // import assertYaml "github.com/stretchr/testify/assert/yaml"
16 | //
17 | // func init() {
18 | // assertYaml.Unmarshal = func (in []byte, out interface{}) error {
19 | // // ...
20 | // return nil
21 | // }
22 | // }
23 | package yaml
24 |
25 | var Unmarshal func(in []byte, out interface{}) error
26 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/assert/yaml/yaml_fail.go:
--------------------------------------------------------------------------------
1 | //go:build testify_yaml_fail && !testify_yaml_custom && !testify_yaml_default
2 | // +build testify_yaml_fail,!testify_yaml_custom,!testify_yaml_default
3 |
4 | // Package yaml is an implementation of YAML functions that always fail.
5 | //
6 | // This implementation can be used at build time to replace the default implementation
7 | // to avoid linking with [gopkg.in/yaml.v3]:
8 | //
9 | // go test -tags testify_yaml_fail
10 | package yaml
11 |
12 | import "errors"
13 |
14 | var errNotImplemented = errors.New("YAML functions are not available (see https://pkg.go.dev/github.com/stretchr/testify/assert/yaml)")
15 |
16 | func Unmarshal([]byte, interface{}) error {
17 | return errNotImplemented
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/require/doc.go:
--------------------------------------------------------------------------------
1 | // Package require implements the same assertions as the `assert` package but
2 | // stops test execution when a test fails.
3 | //
4 | // # Example Usage
5 | //
6 | // The following is a complete example using require in a standard test function:
7 | //
8 | // import (
9 | // "testing"
10 | // "github.com/stretchr/testify/require"
11 | // )
12 | //
13 | // func TestSomething(t *testing.T) {
14 | //
15 | // var a string = "Hello"
16 | // var b string = "Hello"
17 | //
18 | // require.Equal(t, a, b, "The two words should be the same.")
19 | //
20 | // }
21 | //
22 | // # Assertions
23 | //
24 | // The `require` package have same global functions as in the `assert` package,
25 | // but instead of returning a boolean result they call `t.FailNow()`.
26 | //
27 | // Every assertion function also takes an optional string message as the final argument,
28 | // allowing custom error messages to be appended to the message the assertion method outputs.
29 | package require
30 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/require/forward_requirements.go:
--------------------------------------------------------------------------------
1 | package require
2 |
3 | // Assertions provides assertion methods around the
4 | // TestingT interface.
5 | type Assertions struct {
6 | t TestingT
7 | }
8 |
9 | // New makes a new Assertions object for the specified TestingT.
10 | func New(t TestingT) *Assertions {
11 | return &Assertions{
12 | t: t,
13 | }
14 | }
15 |
16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=require -template=require_forward.go.tmpl -include-format-funcs"
17 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/require/require.go.tmpl:
--------------------------------------------------------------------------------
1 | {{ replace .Comment "assert." "require."}}
2 | func {{.DocInfo.Name}}(t TestingT, {{.Params}}) {
3 | if h, ok := t.(tHelper); ok { h.Helper() }
4 | if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return }
5 | t.FailNow()
6 | }
7 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/require/require_forward.go.tmpl:
--------------------------------------------------------------------------------
1 | {{.CommentWithoutT "a"}}
2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) {
3 | if h, ok := a.t.(tHelper); ok { h.Helper() }
4 | {{.DocInfo.Name}}(a.t, {{.ForwardedParams}})
5 | }
6 |
--------------------------------------------------------------------------------
/vendor/github.com/subosito/gotenv/.env:
--------------------------------------------------------------------------------
1 | HELLO=world
2 |
--------------------------------------------------------------------------------
/vendor/github.com/subosito/gotenv/.env.invalid:
--------------------------------------------------------------------------------
1 | lol$wut
2 |
--------------------------------------------------------------------------------
/vendor/github.com/subosito/gotenv/.gitignore:
--------------------------------------------------------------------------------
1 | *.test
2 | *.out
3 | annotate.json
4 | profile.cov
5 |
--------------------------------------------------------------------------------
/vendor/github.com/subosito/gotenv/.golangci.yaml:
--------------------------------------------------------------------------------
1 | # Options for analysis running.
2 | run:
3 | timeout: 1m
4 |
5 | linters-settings:
6 | gofmt:
7 | simplify: true
8 |
--------------------------------------------------------------------------------
/vendor/github.com/yuin/goldmark/.gitignore:
--------------------------------------------------------------------------------
1 | # Binaries for programs and plugins
2 | *.exe
3 | *.exe~
4 | *.dll
5 | *.so
6 | *.dylib
7 |
8 | # Test binary, build with `go test -c`
9 | *.test
10 | *.pprof
11 |
12 | # Output of the go coverage tool, specifically when used with LiteIDE
13 | *.out
14 |
15 | .DS_Store
16 | fuzz/corpus
17 | fuzz/crashers
18 | fuzz/suppressions
19 | fuzz/fuzz-fuzz.zip
20 |
--------------------------------------------------------------------------------
/vendor/github.com/yuin/goldmark/Makefile:
--------------------------------------------------------------------------------
1 | .PHONY: test fuzz lint
2 |
3 | lint:
4 | golangci-lint run -c .golangci.yml ./...
5 |
6 | test:
7 | go test -coverprofile=profile.out -coverpkg=github.com/yuin/goldmark,github.com/yuin/goldmark/ast,github.com/yuin/goldmark/extension,github.com/yuin/goldmark/extension/ast,github.com/yuin/goldmark/parser,github.com/yuin/goldmark/renderer,github.com/yuin/goldmark/renderer/html,github.com/yuin/goldmark/text,github.com/yuin/goldmark/util ./...
8 |
9 | cov: test
10 | go tool cover -html=profile.out
11 |
12 | fuzz:
13 | cd ./fuzz && go test -fuzz=Fuzz
14 |
--------------------------------------------------------------------------------
/vendor/github.com/yuin/goldmark/extension/ast/strikethrough.go:
--------------------------------------------------------------------------------
1 | // Package ast defines AST nodes that represents extension's elements
2 | package ast
3 |
4 | import (
5 | gast "github.com/yuin/goldmark/ast"
6 | )
7 |
8 | // A Strikethrough struct represents a strikethrough of GFM text.
9 | type Strikethrough struct {
10 | gast.BaseInline
11 | }
12 |
13 | // Dump implements Node.Dump.
14 | func (n *Strikethrough) Dump(source []byte, level int) {
15 | gast.DumpHelper(n, source, level, nil, nil)
16 | }
17 |
18 | // KindStrikethrough is a NodeKind of the Strikethrough node.
19 | var KindStrikethrough = gast.NewNodeKind("Strikethrough")
20 |
21 | // Kind implements Node.Kind.
22 | func (n *Strikethrough) Kind() gast.NodeKind {
23 | return KindStrikethrough
24 | }
25 |
26 | // NewStrikethrough returns a new Strikethrough node.
27 | func NewStrikethrough() *Strikethrough {
28 | return &Strikethrough{}
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/github.com/yuin/goldmark/extension/ast/tasklist.go:
--------------------------------------------------------------------------------
1 | package ast
2 |
3 | import (
4 | "fmt"
5 | gast "github.com/yuin/goldmark/ast"
6 | )
7 |
8 | // A TaskCheckBox struct represents a checkbox of a task list.
9 | type TaskCheckBox struct {
10 | gast.BaseInline
11 | IsChecked bool
12 | }
13 |
14 | // Dump implements Node.Dump.
15 | func (n *TaskCheckBox) Dump(source []byte, level int) {
16 | m := map[string]string{
17 | "Checked": fmt.Sprintf("%v", n.IsChecked),
18 | }
19 | gast.DumpHelper(n, source, level, m, nil)
20 | }
21 |
22 | // KindTaskCheckBox is a NodeKind of the TaskCheckBox node.
23 | var KindTaskCheckBox = gast.NewNodeKind("TaskCheckBox")
24 |
25 | // Kind implements Node.Kind.
26 | func (n *TaskCheckBox) Kind() gast.NodeKind {
27 | return KindTaskCheckBox
28 | }
29 |
30 | // NewTaskCheckBox returns a new TaskCheckBox node.
31 | func NewTaskCheckBox(checked bool) *TaskCheckBox {
32 | return &TaskCheckBox{
33 | IsChecked: checked,
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/github.com/yuin/goldmark/extension/gfm.go:
--------------------------------------------------------------------------------
1 | package extension
2 |
3 | import (
4 | "github.com/yuin/goldmark"
5 | )
6 |
7 | type gfm struct {
8 | }
9 |
10 | // GFM is an extension that provides Github Flavored markdown functionalities.
11 | var GFM = &gfm{}
12 |
13 | func (e *gfm) Extend(m goldmark.Markdown) {
14 | Linkify.Extend(m)
15 | Table.Extend(m)
16 | Strikethrough.Extend(m)
17 | TaskList.Extend(m)
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/github.com/yuin/goldmark/extension/package.go:
--------------------------------------------------------------------------------
1 | // Package extension is a collection of builtin extensions.
2 | package extension
3 |
--------------------------------------------------------------------------------
/vendor/github.com/yuin/goldmark/text/package.go:
--------------------------------------------------------------------------------
1 | // Package text provides functionalities to manipulate texts.
2 | package text
3 |
--------------------------------------------------------------------------------
/vendor/github.com/yuin/goldmark/util/util_safe.go:
--------------------------------------------------------------------------------
1 | //go:build appengine || js
2 | // +build appengine js
3 |
4 | package util
5 |
6 | // BytesToReadOnlyString returns a string converted from given bytes.
7 | func BytesToReadOnlyString(b []byte) string {
8 | return string(b)
9 | }
10 |
11 | // StringToReadOnlyBytes returns bytes converted from given string.
12 | func StringToReadOnlyBytes(s string) []byte {
13 | return []byte(s)
14 | }
15 |
--------------------------------------------------------------------------------
/vendor/github.com/yuin/goldmark/util/util_unsafe_go120.go:
--------------------------------------------------------------------------------
1 | //go:build !appengine && !js && !go1.21
2 | // +build !appengine,!js,!go1.21
3 |
4 | package util
5 |
6 | import (
7 | "reflect"
8 | "unsafe"
9 | )
10 |
11 | // BytesToReadOnlyString returns a string converted from given bytes.
12 | func BytesToReadOnlyString(b []byte) string {
13 | return *(*string)(unsafe.Pointer(&b))
14 | }
15 |
16 | // StringToReadOnlyBytes returns bytes converted from given string.
17 | func StringToReadOnlyBytes(s string) (bs []byte) {
18 | sh := (*reflect.StringHeader)(unsafe.Pointer(&s))
19 | bh := (*reflect.SliceHeader)(unsafe.Pointer(&bs))
20 | bh.Data = sh.Data
21 | bh.Cap = sh.Len
22 | bh.Len = sh.Len
23 | return
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/github.com/yuin/goldmark/util/util_unsafe_go121.go:
--------------------------------------------------------------------------------
1 | //go:build !appengine && !js && go1.21
2 | // +build !appengine,!js,go1.21
3 |
4 | package util
5 |
6 | import (
7 | "unsafe"
8 | )
9 |
10 | // BytesToReadOnlyString returns a string converted from given bytes.
11 | func BytesToReadOnlyString(b []byte) string {
12 | return unsafe.String(unsafe.SliceData(b), len(b))
13 | }
14 |
15 | // StringToReadOnlyBytes returns bytes converted from given string.
16 | func StringToReadOnlyBytes(s string) []byte {
17 | return unsafe.Slice(unsafe.StringData(s), len(s))
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/go.uber.org/multierr/.codecov.yml:
--------------------------------------------------------------------------------
1 | coverage:
2 | range: 80..100
3 | round: down
4 | precision: 2
5 |
6 | status:
7 | project: # measuring the overall project coverage
8 | default: # context, you can create multiple ones with custom titles
9 | enabled: yes # must be yes|true to enable this status
10 | target: 100 # specify the target coverage for each commit status
11 | # option: "auto" (must increase from parent commit or pull request base)
12 | # option: "X%" a static target percentage to hit
13 | if_not_found: success # if parent is not found report status as success, error, or failure
14 | if_ci_failed: error # if ci fails report status as success, error, or failure
15 |
16 |
--------------------------------------------------------------------------------
/vendor/go.uber.org/multierr/.gitignore:
--------------------------------------------------------------------------------
1 | /vendor
2 | cover.html
3 | cover.out
4 | /bin
5 |
--------------------------------------------------------------------------------
/vendor/go.uber.org/multierr/Makefile:
--------------------------------------------------------------------------------
1 | # Directory to put `go install`ed binaries in.
2 | export GOBIN ?= $(shell pwd)/bin
3 |
4 | GO_FILES := $(shell \
5 | find . '(' -path '*/.*' -o -path './vendor' ')' -prune \
6 | -o -name '*.go' -print | cut -b3-)
7 |
8 | .PHONY: build
9 | build:
10 | go build ./...
11 |
12 | .PHONY: test
13 | test:
14 | go test -race ./...
15 |
16 | .PHONY: gofmt
17 | gofmt:
18 | $(eval FMT_LOG := $(shell mktemp -t gofmt.XXXXX))
19 | @gofmt -e -s -l $(GO_FILES) > $(FMT_LOG) || true
20 | @[ ! -s "$(FMT_LOG)" ] || (echo "gofmt failed:" | cat - $(FMT_LOG) && false)
21 |
22 | .PHONY: golint
23 | golint:
24 | @cd tools && go install golang.org/x/lint/golint
25 | @$(GOBIN)/golint ./...
26 |
27 | .PHONY: staticcheck
28 | staticcheck:
29 | @cd tools && go install honnef.co/go/tools/cmd/staticcheck
30 | @$(GOBIN)/staticcheck ./...
31 |
32 | .PHONY: lint
33 | lint: gofmt golint staticcheck
34 |
35 | .PHONY: cover
36 | cover:
37 | go test -race -coverprofile=cover.out -coverpkg=./... -v ./...
38 | go tool cover -html=cover.out -o cover.html
39 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/crypto/bcrypt/base64.go:
--------------------------------------------------------------------------------
1 | // Copyright 2011 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package bcrypt
6 |
7 | import "encoding/base64"
8 |
9 | const alphabet = "./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
10 |
11 | var bcEncoding = base64.NewEncoding(alphabet)
12 |
13 | func base64Encode(src []byte) []byte {
14 | n := bcEncoding.EncodedLen(len(src))
15 | dst := make([]byte, n)
16 | bcEncoding.Encode(dst, src)
17 | for dst[n-1] == '=' {
18 | n--
19 | }
20 | return dst[:n]
21 | }
22 |
23 | func base64Decode(src []byte) ([]byte, error) {
24 | numOfEquals := 4 - (len(src) % 4)
25 | for i := 0; i < numOfEquals; i++ {
26 | src = append(src, '=')
27 | }
28 |
29 | dst := make([]byte, bcEncoding.DecodedLen(len(src)))
30 | n, err := bcEncoding.Decode(dst, src)
31 | if err != nil {
32 | return nil, err
33 | }
34 | return dst[:n], nil
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/exp/slog/internal/ignorepc.go:
--------------------------------------------------------------------------------
1 | // Copyright 2023 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package internal
6 |
7 | // If IgnorePC is true, do not invoke runtime.Callers to get the pc.
8 | // This is solely for benchmarking the slowdown from runtime.Callers.
9 | var IgnorePC = false
10 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/oauth2/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 |
3 | go:
4 | - tip
5 |
6 | install:
7 | - export GOPATH="$HOME/gopath"
8 | - mkdir -p "$GOPATH/src/golang.org/x"
9 | - mv "$TRAVIS_BUILD_DIR" "$GOPATH/src/golang.org/x/oauth2"
10 | - go get -v -t -d golang.org/x/oauth2/...
11 |
12 | script:
13 | - go test -v golang.org/x/oauth2/...
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/oauth2/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing to Go
2 |
3 | Go is an open source project.
4 |
5 | It is the work of hundreds of contributors. We appreciate your help!
6 |
7 | ## Filing issues
8 |
9 | When [filing an issue](https://github.com/golang/oauth2/issues), make sure to answer these five questions:
10 |
11 | 1. What version of Go are you using (`go version`)?
12 | 2. What operating system and processor architecture are you using?
13 | 3. What did you do?
14 | 4. What did you expect to see?
15 | 5. What did you see instead?
16 |
17 | General questions should go to the [golang-nuts mailing list](https://groups.google.com/group/golang-nuts) instead of the issue tracker.
18 | The gophers there will answer or ask you to file an issue if you've tripped over a bug.
19 |
20 | ## Contributing code
21 |
22 | Please read the [Contribution Guidelines](https://golang.org/doc/contribute.html)
23 | before sending patches.
24 |
25 | Unless otherwise noted, the Go source files are distributed under
26 | the BSD-style license found in the LICENSE file.
27 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/oauth2/internal/doc.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // Package internal contains support packages for oauth2 package.
6 | package internal
7 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/oauth2/internal/transport.go:
--------------------------------------------------------------------------------
1 | // Copyright 2014 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package internal
6 |
7 | import (
8 | "context"
9 | "net/http"
10 | )
11 |
12 | // HTTPClient is the context key to use with golang.org/x/net/context's
13 | // WithValue function to associate an *http.Client value with a context.
14 | var HTTPClient ContextKey
15 |
16 | // ContextKey is just an empty struct. It exists so HTTPClient can be
17 | // an immutable public variable with a unique type. It's immutable
18 | // because nobody else can create a ContextKey, being unexported.
19 | type ContextKey struct{}
20 |
21 | func ContextClient(ctx context.Context) *http.Client {
22 | if ctx != nil {
23 | if hc, ok := ctx.Value(HTTPClient).(*http.Client); ok {
24 | return hc
25 | }
26 | }
27 | return http.DefaultClient
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/plan9/asm.s:
--------------------------------------------------------------------------------
1 | // Copyright 2014 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | #include "textflag.h"
6 |
7 | TEXT ·use(SB),NOSPLIT,$0
8 | RET
9 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/plan9/asm_plan9_386.s:
--------------------------------------------------------------------------------
1 | // Copyright 2009 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | #include "textflag.h"
6 |
7 | //
8 | // System call support for 386, Plan 9
9 | //
10 |
11 | // Just jump to package syscall's implementation for all these functions.
12 | // The runtime may know about them.
13 |
14 | TEXT ·Syscall(SB),NOSPLIT,$0-32
15 | JMP syscall·Syscall(SB)
16 |
17 | TEXT ·Syscall6(SB),NOSPLIT,$0-44
18 | JMP syscall·Syscall6(SB)
19 |
20 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28
21 | JMP syscall·RawSyscall(SB)
22 |
23 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
24 | JMP syscall·RawSyscall6(SB)
25 |
26 | TEXT ·seek(SB),NOSPLIT,$0-36
27 | JMP syscall·seek(SB)
28 |
29 | TEXT ·exit(SB),NOSPLIT,$4-4
30 | JMP syscall·exit(SB)
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/plan9/asm_plan9_amd64.s:
--------------------------------------------------------------------------------
1 | // Copyright 2009 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | #include "textflag.h"
6 |
7 | //
8 | // System call support for amd64, Plan 9
9 | //
10 |
11 | // Just jump to package syscall's implementation for all these functions.
12 | // The runtime may know about them.
13 |
14 | TEXT ·Syscall(SB),NOSPLIT,$0-64
15 | JMP syscall·Syscall(SB)
16 |
17 | TEXT ·Syscall6(SB),NOSPLIT,$0-88
18 | JMP syscall·Syscall6(SB)
19 |
20 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56
21 | JMP syscall·RawSyscall(SB)
22 |
23 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
24 | JMP syscall·RawSyscall6(SB)
25 |
26 | TEXT ·seek(SB),NOSPLIT,$0-56
27 | JMP syscall·seek(SB)
28 |
29 | TEXT ·exit(SB),NOSPLIT,$8-8
30 | JMP syscall·exit(SB)
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/plan9/asm_plan9_arm.s:
--------------------------------------------------------------------------------
1 | // Copyright 2009 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | #include "textflag.h"
6 |
7 | // System call support for plan9 on arm
8 |
9 | // Just jump to package syscall's implementation for all these functions.
10 | // The runtime may know about them.
11 |
12 | TEXT ·Syscall(SB),NOSPLIT,$0-32
13 | JMP syscall·Syscall(SB)
14 |
15 | TEXT ·Syscall6(SB),NOSPLIT,$0-44
16 | JMP syscall·Syscall6(SB)
17 |
18 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28
19 | JMP syscall·RawSyscall(SB)
20 |
21 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
22 | JMP syscall·RawSyscall6(SB)
23 |
24 | TEXT ·seek(SB),NOSPLIT,$0-36
25 | JMP syscall·exit(SB)
26 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/plan9/env_plan9.go:
--------------------------------------------------------------------------------
1 | // Copyright 2011 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // Plan 9 environment variables.
6 |
7 | package plan9
8 |
9 | import (
10 | "syscall"
11 | )
12 |
13 | func Getenv(key string) (value string, found bool) {
14 | return syscall.Getenv(key)
15 | }
16 |
17 | func Setenv(key, value string) error {
18 | return syscall.Setenv(key, value)
19 | }
20 |
21 | func Clearenv() {
22 | syscall.Clearenv()
23 | }
24 |
25 | func Environ() []string {
26 | return syscall.Environ()
27 | }
28 |
29 | func Unsetenv(key string) error {
30 | return syscall.Unsetenv(key)
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/plan9/mksysnum_plan9.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # Copyright 2009 The Go Authors. All rights reserved.
3 | # Use of this source code is governed by a BSD-style
4 | # license that can be found in the LICENSE file.
5 |
6 | COMMAND="mksysnum_plan9.sh $@"
7 |
8 | cat <= 10 {
16 | buf[i] = byte(val%10 + '0')
17 | i--
18 | val /= 10
19 | }
20 | buf[i] = byte(val + '0')
21 | return string(buf[i:])
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/.gitignore:
--------------------------------------------------------------------------------
1 | _obj/
2 | unix.test
3 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/aliases.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
6 |
7 | package unix
8 |
9 | import "syscall"
10 |
11 | type Signal = syscall.Signal
12 | type Errno = syscall.Errno
13 | type SysProcAttr = syscall.SysProcAttr
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/asm_aix_ppc64.s:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build gc
6 |
7 | #include "textflag.h"
8 |
9 | //
10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go
11 | //
12 |
13 | TEXT ·syscall6(SB),NOSPLIT,$0-88
14 | JMP syscall·syscall6(SB)
15 |
16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88
17 | JMP syscall·rawSyscall6(SB)
18 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/asm_bsd_386.s:
--------------------------------------------------------------------------------
1 | // Copyright 2021 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build (freebsd || netbsd || openbsd) && gc
6 |
7 | #include "textflag.h"
8 |
9 | // System call support for 386 BSD
10 |
11 | // Just jump to package syscall's implementation for all these functions.
12 | // The runtime may know about them.
13 |
14 | TEXT ·Syscall(SB),NOSPLIT,$0-28
15 | JMP syscall·Syscall(SB)
16 |
17 | TEXT ·Syscall6(SB),NOSPLIT,$0-40
18 | JMP syscall·Syscall6(SB)
19 |
20 | TEXT ·Syscall9(SB),NOSPLIT,$0-52
21 | JMP syscall·Syscall9(SB)
22 |
23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28
24 | JMP syscall·RawSyscall(SB)
25 |
26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
27 | JMP syscall·RawSyscall6(SB)
28 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/asm_bsd_amd64.s:
--------------------------------------------------------------------------------
1 | // Copyright 2021 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build (darwin || dragonfly || freebsd || netbsd || openbsd) && gc
6 |
7 | #include "textflag.h"
8 |
9 | // System call support for AMD64 BSD
10 |
11 | // Just jump to package syscall's implementation for all these functions.
12 | // The runtime may know about them.
13 |
14 | TEXT ·Syscall(SB),NOSPLIT,$0-56
15 | JMP syscall·Syscall(SB)
16 |
17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80
18 | JMP syscall·Syscall6(SB)
19 |
20 | TEXT ·Syscall9(SB),NOSPLIT,$0-104
21 | JMP syscall·Syscall9(SB)
22 |
23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56
24 | JMP syscall·RawSyscall(SB)
25 |
26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
27 | JMP syscall·RawSyscall6(SB)
28 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/asm_bsd_arm.s:
--------------------------------------------------------------------------------
1 | // Copyright 2021 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build (freebsd || netbsd || openbsd) && gc
6 |
7 | #include "textflag.h"
8 |
9 | // System call support for ARM BSD
10 |
11 | // Just jump to package syscall's implementation for all these functions.
12 | // The runtime may know about them.
13 |
14 | TEXT ·Syscall(SB),NOSPLIT,$0-28
15 | B syscall·Syscall(SB)
16 |
17 | TEXT ·Syscall6(SB),NOSPLIT,$0-40
18 | B syscall·Syscall6(SB)
19 |
20 | TEXT ·Syscall9(SB),NOSPLIT,$0-52
21 | B syscall·Syscall9(SB)
22 |
23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28
24 | B syscall·RawSyscall(SB)
25 |
26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
27 | B syscall·RawSyscall6(SB)
28 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/asm_bsd_arm64.s:
--------------------------------------------------------------------------------
1 | // Copyright 2021 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build (darwin || freebsd || netbsd || openbsd) && gc
6 |
7 | #include "textflag.h"
8 |
9 | // System call support for ARM64 BSD
10 |
11 | // Just jump to package syscall's implementation for all these functions.
12 | // The runtime may know about them.
13 |
14 | TEXT ·Syscall(SB),NOSPLIT,$0-56
15 | JMP syscall·Syscall(SB)
16 |
17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80
18 | JMP syscall·Syscall6(SB)
19 |
20 | TEXT ·Syscall9(SB),NOSPLIT,$0-104
21 | JMP syscall·Syscall9(SB)
22 |
23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56
24 | JMP syscall·RawSyscall(SB)
25 |
26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
27 | JMP syscall·RawSyscall6(SB)
28 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s:
--------------------------------------------------------------------------------
1 | // Copyright 2022 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build (darwin || freebsd || netbsd || openbsd) && gc
6 |
7 | #include "textflag.h"
8 |
9 | //
10 | // System call support for ppc64, BSD
11 | //
12 |
13 | // Just jump to package syscall's implementation for all these functions.
14 | // The runtime may know about them.
15 |
16 | TEXT ·Syscall(SB),NOSPLIT,$0-56
17 | JMP syscall·Syscall(SB)
18 |
19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80
20 | JMP syscall·Syscall6(SB)
21 |
22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104
23 | JMP syscall·Syscall9(SB)
24 |
25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56
26 | JMP syscall·RawSyscall(SB)
27 |
28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
29 | JMP syscall·RawSyscall6(SB)
30 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s:
--------------------------------------------------------------------------------
1 | // Copyright 2021 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build (darwin || freebsd || netbsd || openbsd) && gc
6 |
7 | #include "textflag.h"
8 |
9 | // System call support for RISCV64 BSD
10 |
11 | // Just jump to package syscall's implementation for all these functions.
12 | // The runtime may know about them.
13 |
14 | TEXT ·Syscall(SB),NOSPLIT,$0-56
15 | JMP syscall·Syscall(SB)
16 |
17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80
18 | JMP syscall·Syscall6(SB)
19 |
20 | TEXT ·Syscall9(SB),NOSPLIT,$0-104
21 | JMP syscall·Syscall9(SB)
22 |
23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56
24 | JMP syscall·RawSyscall(SB)
25 |
26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
27 | JMP syscall·RawSyscall6(SB)
28 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build gc
6 |
7 | #include "textflag.h"
8 |
9 | //
10 | // System call support for mips64, OpenBSD
11 | //
12 |
13 | // Just jump to package syscall's implementation for all these functions.
14 | // The runtime may know about them.
15 |
16 | TEXT ·Syscall(SB),NOSPLIT,$0-56
17 | JMP syscall·Syscall(SB)
18 |
19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80
20 | JMP syscall·Syscall6(SB)
21 |
22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104
23 | JMP syscall·Syscall9(SB)
24 |
25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56
26 | JMP syscall·RawSyscall(SB)
27 |
28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
29 | JMP syscall·RawSyscall6(SB)
30 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s:
--------------------------------------------------------------------------------
1 | // Copyright 2014 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build gc
6 |
7 | #include "textflag.h"
8 |
9 | //
10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go
11 | //
12 |
13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88
14 | JMP syscall·sysvicall6(SB)
15 |
16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88
17 | JMP syscall·rawSysvicall6(SB)
18 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/auxv_unsupported.go:
--------------------------------------------------------------------------------
1 | // Copyright 2025 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build !go1.21 && (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos)
6 |
7 | package unix
8 |
9 | import "syscall"
10 |
11 | func Auxv() ([][2]uintptr, error) {
12 | return nil, syscall.ENOTSUP
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/bluetooth_linux.go:
--------------------------------------------------------------------------------
1 | // Copyright 2016 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // Bluetooth sockets and messages
6 |
7 | package unix
8 |
9 | // Bluetooth Protocols
10 | const (
11 | BTPROTO_L2CAP = 0
12 | BTPROTO_HCI = 1
13 | BTPROTO_SCO = 2
14 | BTPROTO_RFCOMM = 3
15 | BTPROTO_BNEP = 4
16 | BTPROTO_CMTP = 5
17 | BTPROTO_HIDP = 6
18 | BTPROTO_AVDTP = 7
19 | )
20 |
21 | const (
22 | HCI_CHANNEL_RAW = 0
23 | HCI_CHANNEL_USER = 1
24 | HCI_CHANNEL_MONITOR = 2
25 | HCI_CHANNEL_CONTROL = 3
26 | HCI_CHANNEL_LOGGING = 4
27 | )
28 |
29 | // Socketoption Level
30 | const (
31 | SOL_BLUETOOTH = 0x112
32 | SOL_HCI = 0x0
33 | SOL_L2CAP = 0x6
34 | SOL_RFCOMM = 0x12
35 | SOL_SCO = 0x11
36 | )
37 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/constants.go:
--------------------------------------------------------------------------------
1 | // Copyright 2015 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
6 |
7 | package unix
8 |
9 | const (
10 | R_OK = 0x4
11 | W_OK = 0x2
12 | X_OK = 0x1
13 | )
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/dev_aix_ppc.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build aix && ppc
6 |
7 | // Functions to access/create device major and minor numbers matching the
8 | // encoding used by AIX.
9 |
10 | package unix
11 |
12 | // Major returns the major component of a Linux device number.
13 | func Major(dev uint64) uint32 {
14 | return uint32((dev >> 16) & 0xffff)
15 | }
16 |
17 | // Minor returns the minor component of a Linux device number.
18 | func Minor(dev uint64) uint32 {
19 | return uint32(dev & 0xffff)
20 | }
21 |
22 | // Mkdev returns a Linux device number generated from the given major and minor
23 | // components.
24 | func Mkdev(major, minor uint32) uint64 {
25 | return uint64(((major) << 16) | (minor))
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/dev_aix_ppc64.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build aix && ppc64
6 |
7 | // Functions to access/create device major and minor numbers matching the
8 | // encoding used AIX.
9 |
10 | package unix
11 |
12 | // Major returns the major component of a Linux device number.
13 | func Major(dev uint64) uint32 {
14 | return uint32((dev & 0x3fffffff00000000) >> 32)
15 | }
16 |
17 | // Minor returns the minor component of a Linux device number.
18 | func Minor(dev uint64) uint32 {
19 | return uint32((dev & 0x00000000ffffffff) >> 0)
20 | }
21 |
22 | // Mkdev returns a Linux device number generated from the given major and minor
23 | // components.
24 | func Mkdev(major, minor uint32) uint64 {
25 | var DEVNO64 uint64
26 | DEVNO64 = 0x8000000000000000
27 | return ((uint64(major) << 32) | (uint64(minor) & 0x00000000FFFFFFFF) | DEVNO64)
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/dev_darwin.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // Functions to access/create device major and minor numbers matching the
6 | // encoding used in Darwin's sys/types.h header.
7 |
8 | package unix
9 |
10 | // Major returns the major component of a Darwin device number.
11 | func Major(dev uint64) uint32 {
12 | return uint32((dev >> 24) & 0xff)
13 | }
14 |
15 | // Minor returns the minor component of a Darwin device number.
16 | func Minor(dev uint64) uint32 {
17 | return uint32(dev & 0xffffff)
18 | }
19 |
20 | // Mkdev returns a Darwin device number generated from the given major and minor
21 | // components.
22 | func Mkdev(major, minor uint32) uint64 {
23 | return (uint64(major) << 24) | uint64(minor)
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/dev_netbsd.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // Functions to access/create device major and minor numbers matching the
6 | // encoding used in NetBSD's sys/types.h header.
7 |
8 | package unix
9 |
10 | // Major returns the major component of a NetBSD device number.
11 | func Major(dev uint64) uint32 {
12 | return uint32((dev & 0x000fff00) >> 8)
13 | }
14 |
15 | // Minor returns the minor component of a NetBSD device number.
16 | func Minor(dev uint64) uint32 {
17 | minor := uint32((dev & 0x000000ff) >> 0)
18 | minor |= uint32((dev & 0xfff00000) >> 12)
19 | return minor
20 | }
21 |
22 | // Mkdev returns a NetBSD device number generated from the given major and minor
23 | // components.
24 | func Mkdev(major, minor uint32) uint64 {
25 | dev := (uint64(major) << 8) & 0x000fff00
26 | dev |= (uint64(minor) << 12) & 0xfff00000
27 | dev |= (uint64(minor) << 0) & 0x000000ff
28 | return dev
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/dev_openbsd.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | // Functions to access/create device major and minor numbers matching the
6 | // encoding used in OpenBSD's sys/types.h header.
7 |
8 | package unix
9 |
10 | // Major returns the major component of an OpenBSD device number.
11 | func Major(dev uint64) uint32 {
12 | return uint32((dev & 0x0000ff00) >> 8)
13 | }
14 |
15 | // Minor returns the minor component of an OpenBSD device number.
16 | func Minor(dev uint64) uint32 {
17 | minor := uint32((dev & 0x000000ff) >> 0)
18 | minor |= uint32((dev & 0xffff0000) >> 8)
19 | return minor
20 | }
21 |
22 | // Mkdev returns an OpenBSD device number generated from the given major and minor
23 | // components.
24 | func Mkdev(major, minor uint32) uint64 {
25 | dev := (uint64(major) << 8) & 0x0000ff00
26 | dev |= (uint64(minor) << 8) & 0xffff0000
27 | dev |= (uint64(minor) << 0) & 0x000000ff
28 | return dev
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/dev_zos.go:
--------------------------------------------------------------------------------
1 | // Copyright 2020 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build zos && s390x
6 |
7 | // Functions to access/create device major and minor numbers matching the
8 | // encoding used by z/OS.
9 | //
10 | // The information below is extracted and adapted from macros.
11 |
12 | package unix
13 |
14 | // Major returns the major component of a z/OS device number.
15 | func Major(dev uint64) uint32 {
16 | return uint32((dev >> 16) & 0x0000FFFF)
17 | }
18 |
19 | // Minor returns the minor component of a z/OS device number.
20 | func Minor(dev uint64) uint32 {
21 | return uint32(dev & 0x0000FFFF)
22 | }
23 |
24 | // Mkdev returns a z/OS device number generated from the given major and minor
25 | // components.
26 | func Mkdev(major, minor uint32) uint64 {
27 | return (uint64(major) << 16) | uint64(minor)
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/endian_big.go:
--------------------------------------------------------------------------------
1 | // Copyright 2016 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 | //
5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64
6 |
7 | package unix
8 |
9 | const isBigEndian = true
10 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/endian_little.go:
--------------------------------------------------------------------------------
1 | // Copyright 2016 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 | //
5 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh
6 |
7 | package unix
8 |
9 | const isBigEndian = false
10 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/env_unix.go:
--------------------------------------------------------------------------------
1 | // Copyright 2010 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
6 |
7 | // Unix environment variables.
8 |
9 | package unix
10 |
11 | import "syscall"
12 |
13 | func Getenv(key string) (value string, found bool) {
14 | return syscall.Getenv(key)
15 | }
16 |
17 | func Setenv(key, value string) error {
18 | return syscall.Setenv(key, value)
19 | }
20 |
21 | func Clearenv() {
22 | syscall.Clearenv()
23 | }
24 |
25 | func Environ() []string {
26 | return syscall.Environ()
27 | }
28 |
29 | func Unsetenv(key string) error {
30 | return syscall.Unsetenv(key)
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/fcntl_darwin.go:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package unix
6 |
7 | import "unsafe"
8 |
9 | // FcntlInt performs a fcntl syscall on fd with the provided command and argument.
10 | func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
11 | return fcntl(int(fd), cmd, arg)
12 | }
13 |
14 | // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
15 | func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
16 | _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(lk))))
17 | return err
18 | }
19 |
20 | // FcntlFstore performs a fcntl syscall for the F_PREALLOCATE command.
21 | func FcntlFstore(fd uintptr, cmd int, fstore *Fstore_t) error {
22 | _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(fstore))))
23 | return err
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go:
--------------------------------------------------------------------------------
1 | // Copyright 2014 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc)
6 |
7 | package unix
8 |
9 | func init() {
10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's
11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL.
12 | fcntl64Syscall = SYS_FCNTL64
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/fdset.go:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
6 |
7 | package unix
8 |
9 | // Set adds fd to the set fds.
10 | func (fds *FdSet) Set(fd int) {
11 | fds.Bits[fd/NFDBITS] |= (1 << (uintptr(fd) % NFDBITS))
12 | }
13 |
14 | // Clear removes fd from the set fds.
15 | func (fds *FdSet) Clear(fd int) {
16 | fds.Bits[fd/NFDBITS] &^= (1 << (uintptr(fd) % NFDBITS))
17 | }
18 |
19 | // IsSet returns whether fd is in the set fds.
20 | func (fds *FdSet) IsSet(fd int) bool {
21 | return fds.Bits[fd/NFDBITS]&(1<<(uintptr(fd)%NFDBITS)) != 0
22 | }
23 |
24 | // Zero clears the set fds.
25 | func (fds *FdSet) Zero() {
26 | for i := range fds.Bits {
27 | fds.Bits[i] = 0
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go:
--------------------------------------------------------------------------------
1 | // Copyright 2015 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build gccgo && linux && amd64
6 |
7 | package unix
8 |
9 | import "syscall"
10 |
11 | //extern gettimeofday
12 | func realGettimeofday(*Timeval, *byte) int32
13 |
14 | func gettimeofday(tv *Timeval) (err syscall.Errno) {
15 | r := realGettimeofday(tv, nil)
16 | if r < 0 {
17 | return syscall.GetErrno()
18 | }
19 | return 0
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/mmap_nomremap.go:
--------------------------------------------------------------------------------
1 | // Copyright 2023 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build aix || darwin || dragonfly || freebsd || openbsd || solaris || zos
6 |
7 | package unix
8 |
9 | var mapper = &mmapper{
10 | active: make(map[*byte][]byte),
11 | mmap: mmap,
12 | munmap: munmap,
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/pagesize_unix.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos
6 |
7 | // For Unix, get the pagesize from the runtime.
8 |
9 | package unix
10 |
11 | import "syscall"
12 |
13 | func Getpagesize() int {
14 | return syscall.Getpagesize()
15 | }
16 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/ptrace_darwin.go:
--------------------------------------------------------------------------------
1 | // Copyright 2020 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build darwin && !ios
6 |
7 | package unix
8 |
9 | func ptrace(request int, pid int, addr uintptr, data uintptr) error {
10 | return ptrace1(request, pid, addr, data)
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/ptrace_ios.go:
--------------------------------------------------------------------------------
1 | // Copyright 2020 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build ios
6 |
7 | package unix
8 |
9 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
10 | return ENOTSUP
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/race.go:
--------------------------------------------------------------------------------
1 | // Copyright 2012 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build (darwin && race) || (linux && race) || (freebsd && race)
6 |
7 | package unix
8 |
9 | import (
10 | "runtime"
11 | "unsafe"
12 | )
13 |
14 | const raceenabled = true
15 |
16 | func raceAcquire(addr unsafe.Pointer) {
17 | runtime.RaceAcquire(addr)
18 | }
19 |
20 | func raceReleaseMerge(addr unsafe.Pointer) {
21 | runtime.RaceReleaseMerge(addr)
22 | }
23 |
24 | func raceReadRange(addr unsafe.Pointer, len int) {
25 | runtime.RaceReadRange(addr, len)
26 | }
27 |
28 | func raceWriteRange(addr unsafe.Pointer, len int) {
29 | runtime.RaceWriteRange(addr, len)
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/race0.go:
--------------------------------------------------------------------------------
1 | // Copyright 2012 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos
6 |
7 | package unix
8 |
9 | import (
10 | "unsafe"
11 | )
12 |
13 | const raceenabled = false
14 |
15 | func raceAcquire(addr unsafe.Pointer) {
16 | }
17 |
18 | func raceReleaseMerge(addr unsafe.Pointer) {
19 | }
20 |
21 | func raceReadRange(addr unsafe.Pointer, len int) {
22 | }
23 |
24 | func raceWriteRange(addr unsafe.Pointer, len int) {
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/readdirent_getdents.go:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd
6 |
7 | package unix
8 |
9 | // ReadDirent reads directory entries from fd and writes them into buf.
10 | func ReadDirent(fd int, buf []byte) (n int, err error) {
11 | return Getdents(fd, buf)
12 | }
13 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build darwin || zos
6 |
7 | package unix
8 |
9 | import "unsafe"
10 |
11 | // ReadDirent reads directory entries from fd and writes them into buf.
12 | func ReadDirent(fd int, buf []byte) (n int, err error) {
13 | // Final argument is (basep *uintptr) and the syscall doesn't take nil.
14 | // 64 bits should be enough. (32 bits isn't even on 386). Since the
15 | // actual system call is getdirentries64, 64 is a good guess.
16 | // TODO(rsc): Can we use a single global basep for all calls?
17 | var base = (*uintptr)(unsafe.Pointer(new(uint64)))
18 | return Getdirentries(fd, buf, base)
19 | }
20 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package unix
6 |
7 | // Round the length of a raw sockaddr up to align it properly.
8 | func cmsgAlignOf(salen int) int {
9 | salign := SizeofPtr
10 | if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) {
11 | // 64-bit Dragonfly before the September 2019 ABI changes still requires
12 | // 32-bit aligned access to network subsystem.
13 | salign = 4
14 | }
15 | return (salen + salign - 1) & ^(salign - 1)
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_hurd.go:
--------------------------------------------------------------------------------
1 | // Copyright 2022 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build hurd
6 |
7 | package unix
8 |
9 | /*
10 | #include
11 | int ioctl(int, unsigned long int, uintptr_t);
12 | */
13 | import "C"
14 | import "unsafe"
15 |
16 | func ioctl(fd int, req uint, arg uintptr) (err error) {
17 | r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(arg))
18 | if r0 == -1 && er != nil {
19 | err = er
20 | }
21 | return
22 | }
23 |
24 | func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
25 | r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(uintptr(arg)))
26 | if r0 == -1 && er != nil {
27 | err = er
28 | }
29 | return
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_hurd_386.go:
--------------------------------------------------------------------------------
1 | // Copyright 2022 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build 386 && hurd
6 |
7 | package unix
8 |
9 | const (
10 | TIOCGETA = 0x62251713
11 | )
12 |
13 | type Winsize struct {
14 | Row uint16
15 | Col uint16
16 | Xpixel uint16
17 | Ypixel uint16
18 | }
19 |
20 | type Termios struct {
21 | Iflag uint32
22 | Oflag uint32
23 | Cflag uint32
24 | Lflag uint32
25 | Cc [20]uint8
26 | Ispeed int32
27 | Ospeed int32
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_linux_alarm.go:
--------------------------------------------------------------------------------
1 | // Copyright 2022 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build linux && (386 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64)
6 |
7 | package unix
8 |
9 | // SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH
10 | // values.
11 |
12 | //sys Alarm(seconds uint) (remaining uint, err error)
13 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go:
--------------------------------------------------------------------------------
1 | // Copyright 2016 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build amd64 && linux && gc
6 |
7 | package unix
8 |
9 | import "syscall"
10 |
11 | //go:noescape
12 | func gettimeofday(tv *Timeval) (err syscall.Errno)
13 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_linux_gc.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build linux && gc
6 |
7 | package unix
8 |
9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail.
10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr)
11 |
12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't
13 | // fail.
14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr)
15 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build linux && gc && 386
6 |
7 | package unix
8 |
9 | import "syscall"
10 |
11 | // Underlying system call writes to newoffset via pointer.
12 | // Implemented in assembly to avoid allocation.
13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)
14 |
15 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
16 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
17 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go:
--------------------------------------------------------------------------------
1 | // Copyright 2009 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build arm && gc && linux
6 |
7 | package unix
8 |
9 | import "syscall"
10 |
11 | // Underlying system call writes to newoffset via pointer.
12 | // Implemented in assembly to avoid allocation.
13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build linux && gccgo && arm
6 |
7 | package unix
8 |
9 | import (
10 | "syscall"
11 | "unsafe"
12 | )
13 |
14 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) {
15 | var newoffset int64
16 | offsetLow := uint32(offset & 0xffffffff)
17 | offsetHigh := uint32((offset >> 32) & 0xffffffff)
18 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0)
19 | return newoffset, err
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go:
--------------------------------------------------------------------------------
1 | // Copyright 2009 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build 386 && netbsd
6 |
7 | package unix
8 |
9 | func setTimespec(sec, nsec int64) Timespec {
10 | return Timespec{Sec: sec, Nsec: int32(nsec)}
11 | }
12 |
13 | func setTimeval(sec, usec int64) Timeval {
14 | return Timeval{Sec: sec, Usec: int32(usec)}
15 | }
16 |
17 | func SetKevent(k *Kevent_t, fd, mode, flags int) {
18 | k.Ident = uint32(fd)
19 | k.Filter = uint32(mode)
20 | k.Flags = uint32(flags)
21 | }
22 |
23 | func (iov *Iovec) SetLen(length int) {
24 | iov.Len = uint32(length)
25 | }
26 |
27 | func (msghdr *Msghdr) SetControllen(length int) {
28 | msghdr.Controllen = uint32(length)
29 | }
30 |
31 | func (msghdr *Msghdr) SetIovlen(length int) {
32 | msghdr.Iovlen = int32(length)
33 | }
34 |
35 | func (cmsg *Cmsghdr) SetLen(length int) {
36 | cmsg.Len = uint32(length)
37 | }
38 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go:
--------------------------------------------------------------------------------
1 | // Copyright 2009 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build amd64 && netbsd
6 |
7 | package unix
8 |
9 | func setTimespec(sec, nsec int64) Timespec {
10 | return Timespec{Sec: sec, Nsec: nsec}
11 | }
12 |
13 | func setTimeval(sec, usec int64) Timeval {
14 | return Timeval{Sec: sec, Usec: int32(usec)}
15 | }
16 |
17 | func SetKevent(k *Kevent_t, fd, mode, flags int) {
18 | k.Ident = uint64(fd)
19 | k.Filter = uint32(mode)
20 | k.Flags = uint32(flags)
21 | }
22 |
23 | func (iov *Iovec) SetLen(length int) {
24 | iov.Len = uint64(length)
25 | }
26 |
27 | func (msghdr *Msghdr) SetControllen(length int) {
28 | msghdr.Controllen = uint32(length)
29 | }
30 |
31 | func (msghdr *Msghdr) SetIovlen(length int) {
32 | msghdr.Iovlen = int32(length)
33 | }
34 |
35 | func (cmsg *Cmsghdr) SetLen(length int) {
36 | cmsg.Len = uint32(length)
37 | }
38 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go:
--------------------------------------------------------------------------------
1 | // Copyright 2013 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build arm && netbsd
6 |
7 | package unix
8 |
9 | func setTimespec(sec, nsec int64) Timespec {
10 | return Timespec{Sec: sec, Nsec: int32(nsec)}
11 | }
12 |
13 | func setTimeval(sec, usec int64) Timeval {
14 | return Timeval{Sec: sec, Usec: int32(usec)}
15 | }
16 |
17 | func SetKevent(k *Kevent_t, fd, mode, flags int) {
18 | k.Ident = uint32(fd)
19 | k.Filter = uint32(mode)
20 | k.Flags = uint32(flags)
21 | }
22 |
23 | func (iov *Iovec) SetLen(length int) {
24 | iov.Len = uint32(length)
25 | }
26 |
27 | func (msghdr *Msghdr) SetControllen(length int) {
28 | msghdr.Controllen = uint32(length)
29 | }
30 |
31 | func (msghdr *Msghdr) SetIovlen(length int) {
32 | msghdr.Iovlen = int32(length)
33 | }
34 |
35 | func (cmsg *Cmsghdr) SetLen(length int) {
36 | cmsg.Len = uint32(length)
37 | }
38 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go:
--------------------------------------------------------------------------------
1 | // Copyright 2019 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build arm64 && netbsd
6 |
7 | package unix
8 |
9 | func setTimespec(sec, nsec int64) Timespec {
10 | return Timespec{Sec: sec, Nsec: nsec}
11 | }
12 |
13 | func setTimeval(sec, usec int64) Timeval {
14 | return Timeval{Sec: sec, Usec: int32(usec)}
15 | }
16 |
17 | func SetKevent(k *Kevent_t, fd, mode, flags int) {
18 | k.Ident = uint64(fd)
19 | k.Filter = uint32(mode)
20 | k.Flags = uint32(flags)
21 | }
22 |
23 | func (iov *Iovec) SetLen(length int) {
24 | iov.Len = uint64(length)
25 | }
26 |
27 | func (msghdr *Msghdr) SetControllen(length int) {
28 | msghdr.Controllen = uint32(length)
29 | }
30 |
31 | func (msghdr *Msghdr) SetIovlen(length int) {
32 | msghdr.Iovlen = int32(length)
33 | }
34 |
35 | func (cmsg *Cmsghdr) SetLen(length int) {
36 | cmsg.Len = uint32(length)
37 | }
38 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go:
--------------------------------------------------------------------------------
1 | // Copyright 2009 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build amd64 && solaris
6 |
7 | package unix
8 |
9 | func setTimespec(sec, nsec int64) Timespec {
10 | return Timespec{Sec: sec, Nsec: nsec}
11 | }
12 |
13 | func setTimeval(sec, usec int64) Timeval {
14 | return Timeval{Sec: sec, Usec: usec}
15 | }
16 |
17 | func (iov *Iovec) SetLen(length int) {
18 | iov.Len = uint64(length)
19 | }
20 |
21 | func (msghdr *Msghdr) SetIovlen(length int) {
22 | msghdr.Iovlen = int32(length)
23 | }
24 |
25 | func (cmsg *Cmsghdr) SetLen(length int) {
26 | cmsg.Len = uint32(length)
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_unix_gc.go:
--------------------------------------------------------------------------------
1 | // Copyright 2016 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc
6 |
7 | package unix
8 |
9 | import "syscall"
10 |
11 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)
12 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
13 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)
14 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
15 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build linux && (ppc64le || ppc64) && gc
6 |
7 | package unix
8 |
9 | import "syscall"
10 |
11 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) {
12 | return syscall.Syscall(trap, a1, a2, a3)
13 | }
14 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) {
15 | return syscall.Syscall6(trap, a1, a2, a3, a4, a5, a6)
16 | }
17 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) {
18 | return syscall.RawSyscall(trap, a1, a2, a3)
19 | }
20 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) {
21 | return syscall.RawSyscall6(trap, a1, a2, a3, a4, a5, a6)
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/sysvshm_linux.go:
--------------------------------------------------------------------------------
1 | // Copyright 2021 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build linux
6 |
7 | package unix
8 |
9 | import "runtime"
10 |
11 | // SysvShmCtl performs control operations on the shared memory segment
12 | // specified by id.
13 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) {
14 | if runtime.GOARCH == "arm" ||
15 | runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" {
16 | cmd |= ipc_64
17 | }
18 |
19 | return shmctl(id, cmd, desc)
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go:
--------------------------------------------------------------------------------
1 | // Copyright 2021 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build (darwin && !ios) || zos
6 |
7 | package unix
8 |
9 | // SysvShmCtl performs control operations on the shared memory segment
10 | // specified by id.
11 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) {
12 | return shmctl(id, cmd, desc)
13 | }
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/vgetrandom_linux.go:
--------------------------------------------------------------------------------
1 | // Copyright 2024 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build linux && go1.24
6 |
7 | package unix
8 |
9 | import _ "unsafe"
10 |
11 | //go:linkname vgetrandom runtime.vgetrandom
12 | //go:noescape
13 | func vgetrandom(p []byte, flags uint32) (ret int, supported bool)
14 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/vgetrandom_unsupported.go:
--------------------------------------------------------------------------------
1 | // Copyright 2024 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build !linux || !go1.24
6 |
7 | package unix
8 |
9 | func vgetrandom(p []byte, flags uint32) (ret int, supported bool) {
10 | return -1, false
11 | }
12 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go:
--------------------------------------------------------------------------------
1 | // Code generated by linux/mkall.go generatePtraceRegSet("arm64"). DO NOT EDIT.
2 |
3 | package unix
4 |
5 | import "unsafe"
6 |
7 | // PtraceGetRegSetArm64 fetches the registers used by arm64 binaries.
8 | func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error {
9 | iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))}
10 | return ptracePtr(PTRACE_GETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec))
11 | }
12 |
13 | // PtraceSetRegSetArm64 sets the registers used by arm64 binaries.
14 | func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error {
15 | iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))}
16 | return ptracePtr(PTRACE_SETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec))
17 | }
18 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/aliases.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build windows
6 |
7 | package windows
8 |
9 | import "syscall"
10 |
11 | type Errno = syscall.Errno
12 | type SysProcAttr = syscall.SysProcAttr
13 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/eventlog.go:
--------------------------------------------------------------------------------
1 | // Copyright 2012 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build windows
6 |
7 | package windows
8 |
9 | const (
10 | EVENTLOG_SUCCESS = 0
11 | EVENTLOG_ERROR_TYPE = 1
12 | EVENTLOG_WARNING_TYPE = 2
13 | EVENTLOG_INFORMATION_TYPE = 4
14 | EVENTLOG_AUDIT_SUCCESS = 8
15 | EVENTLOG_AUDIT_FAILURE = 16
16 | )
17 |
18 | //sys RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) [failretval==0] = advapi32.RegisterEventSourceW
19 | //sys DeregisterEventSource(handle Handle) (err error) = advapi32.DeregisterEventSource
20 | //sys ReportEvent(log Handle, etype uint16, category uint16, eventId uint32, usrSId uintptr, numStrings uint16, dataSize uint32, strings **uint16, rawData *byte) (err error) = advapi32.ReportEventW
21 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/mksyscall.go:
--------------------------------------------------------------------------------
1 | // Copyright 2009 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build generate
6 |
7 | package windows
8 |
9 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go setupapi_windows.go
10 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/race.go:
--------------------------------------------------------------------------------
1 | // Copyright 2012 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build windows && race
6 |
7 | package windows
8 |
9 | import (
10 | "runtime"
11 | "unsafe"
12 | )
13 |
14 | const raceenabled = true
15 |
16 | func raceAcquire(addr unsafe.Pointer) {
17 | runtime.RaceAcquire(addr)
18 | }
19 |
20 | func raceReleaseMerge(addr unsafe.Pointer) {
21 | runtime.RaceReleaseMerge(addr)
22 | }
23 |
24 | func raceReadRange(addr unsafe.Pointer, len int) {
25 | runtime.RaceReadRange(addr, len)
26 | }
27 |
28 | func raceWriteRange(addr unsafe.Pointer, len int) {
29 | runtime.RaceWriteRange(addr, len)
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/race0.go:
--------------------------------------------------------------------------------
1 | // Copyright 2012 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build windows && !race
6 |
7 | package windows
8 |
9 | import (
10 | "unsafe"
11 | )
12 |
13 | const raceenabled = false
14 |
15 | func raceAcquire(addr unsafe.Pointer) {
16 | }
17 |
18 | func raceReleaseMerge(addr unsafe.Pointer) {
19 | }
20 |
21 | func raceReadRange(addr unsafe.Pointer, len int) {
22 | }
23 |
24 | func raceWriteRange(addr unsafe.Pointer, len int) {
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/str.go:
--------------------------------------------------------------------------------
1 | // Copyright 2009 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build windows
6 |
7 | package windows
8 |
9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency
10 | if val < 0 {
11 | return "-" + itoa(-val)
12 | }
13 | var buf [32]byte // big enough for int64
14 | i := len(buf) - 1
15 | for val >= 10 {
16 | buf[i] = byte(val%10 + '0')
17 | i--
18 | val /= 10
19 | }
20 | buf[i] = byte(val + '0')
21 | return string(buf[i:])
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/types_windows_386.go:
--------------------------------------------------------------------------------
1 | // Copyright 2011 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package windows
6 |
7 | type WSAData struct {
8 | Version uint16
9 | HighVersion uint16
10 | Description [WSADESCRIPTION_LEN + 1]byte
11 | SystemStatus [WSASYS_STATUS_LEN + 1]byte
12 | MaxSockets uint16
13 | MaxUdpDg uint16
14 | VendorInfo *byte
15 | }
16 |
17 | type Servent struct {
18 | Name *byte
19 | Aliases **byte
20 | Port uint16
21 | Proto *byte
22 | }
23 |
24 | type JOBOBJECT_BASIC_LIMIT_INFORMATION struct {
25 | PerProcessUserTimeLimit int64
26 | PerJobUserTimeLimit int64
27 | LimitFlags uint32
28 | MinimumWorkingSetSize uintptr
29 | MaximumWorkingSetSize uintptr
30 | ActiveProcessLimit uint32
31 | Affinity uintptr
32 | PriorityClass uint32
33 | SchedulingClass uint32
34 | _ uint32 // pad to 8 byte boundary
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/types_windows_amd64.go:
--------------------------------------------------------------------------------
1 | // Copyright 2011 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package windows
6 |
7 | type WSAData struct {
8 | Version uint16
9 | HighVersion uint16
10 | MaxSockets uint16
11 | MaxUdpDg uint16
12 | VendorInfo *byte
13 | Description [WSADESCRIPTION_LEN + 1]byte
14 | SystemStatus [WSASYS_STATUS_LEN + 1]byte
15 | }
16 |
17 | type Servent struct {
18 | Name *byte
19 | Aliases **byte
20 | Proto *byte
21 | Port uint16
22 | }
23 |
24 | type JOBOBJECT_BASIC_LIMIT_INFORMATION struct {
25 | PerProcessUserTimeLimit int64
26 | PerJobUserTimeLimit int64
27 | LimitFlags uint32
28 | MinimumWorkingSetSize uintptr
29 | MaximumWorkingSetSize uintptr
30 | ActiveProcessLimit uint32
31 | Affinity uintptr
32 | PriorityClass uint32
33 | SchedulingClass uint32
34 | }
35 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/types_windows_arm.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package windows
6 |
7 | type WSAData struct {
8 | Version uint16
9 | HighVersion uint16
10 | Description [WSADESCRIPTION_LEN + 1]byte
11 | SystemStatus [WSASYS_STATUS_LEN + 1]byte
12 | MaxSockets uint16
13 | MaxUdpDg uint16
14 | VendorInfo *byte
15 | }
16 |
17 | type Servent struct {
18 | Name *byte
19 | Aliases **byte
20 | Port uint16
21 | Proto *byte
22 | }
23 |
24 | type JOBOBJECT_BASIC_LIMIT_INFORMATION struct {
25 | PerProcessUserTimeLimit int64
26 | PerJobUserTimeLimit int64
27 | LimitFlags uint32
28 | MinimumWorkingSetSize uintptr
29 | MaximumWorkingSetSize uintptr
30 | ActiveProcessLimit uint32
31 | Affinity uintptr
32 | PriorityClass uint32
33 | SchedulingClass uint32
34 | _ uint32 // pad to 8 byte boundary
35 | }
36 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/types_windows_arm64.go:
--------------------------------------------------------------------------------
1 | // Copyright 2011 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package windows
6 |
7 | type WSAData struct {
8 | Version uint16
9 | HighVersion uint16
10 | MaxSockets uint16
11 | MaxUdpDg uint16
12 | VendorInfo *byte
13 | Description [WSADESCRIPTION_LEN + 1]byte
14 | SystemStatus [WSASYS_STATUS_LEN + 1]byte
15 | }
16 |
17 | type Servent struct {
18 | Name *byte
19 | Aliases **byte
20 | Proto *byte
21 | Port uint16
22 | }
23 |
24 | type JOBOBJECT_BASIC_LIMIT_INFORMATION struct {
25 | PerProcessUserTimeLimit int64
26 | PerJobUserTimeLimit int64
27 | LimitFlags uint32
28 | MinimumWorkingSetSize uintptr
29 | MaximumWorkingSetSize uintptr
30 | ActiveProcessLimit uint32
31 | Affinity uintptr
32 | PriorityClass uint32
33 | SchedulingClass uint32
34 | }
35 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/term/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing to Go
2 |
3 | Go is an open source project.
4 |
5 | It is the work of hundreds of contributors. We appreciate your help!
6 |
7 | ## Filing issues
8 |
9 | When [filing an issue](https://golang.org/issue/new), make sure to answer these five questions:
10 |
11 | 1. What version of Go are you using (`go version`)?
12 | 2. What operating system and processor architecture are you using?
13 | 3. What did you do?
14 | 4. What did you expect to see?
15 | 5. What did you see instead?
16 |
17 | General questions should go to the [golang-nuts mailing list](https://groups.google.com/group/golang-nuts) instead of the issue tracker.
18 | The gophers there will answer or ask you to file an issue if you've tripped over a bug.
19 |
20 | ## Contributing code
21 |
22 | Please read the [Contribution Guidelines](https://golang.org/doc/contribute.html)
23 | before sending patches.
24 |
25 | Unless otherwise noted, the Go source files are distributed under
26 | the BSD-style license found in the LICENSE file.
27 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/term/README.md:
--------------------------------------------------------------------------------
1 | # Go terminal/console support
2 |
3 | [](https://pkg.go.dev/golang.org/x/term)
4 |
5 | This repository provides Go terminal and console support packages.
6 |
7 | ## Report Issues / Send Patches
8 |
9 | This repository uses Gerrit for code changes. To learn how to submit changes to
10 | this repository, see https://go.dev/doc/contribute.
11 |
12 | The git repository is https://go.googlesource.com/term.
13 |
14 | The main issue tracker for the term repository is located at
15 | https://go.dev/issues. Prefix your issue with "x/term:" in the
16 | subject line, so it is easy to find.
17 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/term/codereview.cfg:
--------------------------------------------------------------------------------
1 | issuerepo: golang/go
2 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/term/term_unix_bsd.go:
--------------------------------------------------------------------------------
1 | // Copyright 2013 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build darwin || dragonfly || freebsd || netbsd || openbsd
6 |
7 | package term
8 |
9 | import "golang.org/x/sys/unix"
10 |
11 | const ioctlReadTermios = unix.TIOCGETA
12 | const ioctlWriteTermios = unix.TIOCSETA
13 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/term/term_unix_other.go:
--------------------------------------------------------------------------------
1 | // Copyright 2021 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build aix || linux || solaris || zos
6 |
7 | package term
8 |
9 | import "golang.org/x/sys/unix"
10 |
11 | const ioctlReadTermios = unix.TCGETS
12 | const ioctlWriteTermios = unix.TCSETS
13 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/text/internal/language/common.go:
--------------------------------------------------------------------------------
1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
2 |
3 | package language
4 |
5 | // This file contains code common to the maketables.go and the package code.
6 |
7 | // AliasType is the type of an alias in AliasMap.
8 | type AliasType int8
9 |
10 | const (
11 | Deprecated AliasType = iota
12 | Macro
13 | Legacy
14 |
15 | AliasTypeUnknown AliasType = -1
16 | )
17 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/text/internal/language/compact.go:
--------------------------------------------------------------------------------
1 | // Copyright 2018 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package language
6 |
7 | // CompactCoreInfo is a compact integer with the three core tags encoded.
8 | type CompactCoreInfo uint32
9 |
10 | // GetCompactCore generates a uint32 value that is guaranteed to be unique for
11 | // different language, region, and script values.
12 | func GetCompactCore(t Tag) (cci CompactCoreInfo, ok bool) {
13 | if t.LangID > langNoIndexOffset {
14 | return 0, false
15 | }
16 | cci |= CompactCoreInfo(t.LangID) << (8 + 12)
17 | cci |= CompactCoreInfo(t.ScriptID) << 12
18 | cci |= CompactCoreInfo(t.RegionID)
19 | return cci, true
20 | }
21 |
22 | // Tag generates a tag from c.
23 | func (c CompactCoreInfo) Tag() Tag {
24 | return Tag{
25 | LangID: Language(c >> 20),
26 | RegionID: Region(c & 0x3ff),
27 | ScriptID: Script(c>>12) & 0xff,
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/text/internal/language/coverage.go:
--------------------------------------------------------------------------------
1 | // Copyright 2014 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | package language
6 |
7 | // BaseLanguages returns the list of all supported base languages. It generates
8 | // the list by traversing the internal structures.
9 | func BaseLanguages() []Language {
10 | base := make([]Language, 0, NumLanguages)
11 | for i := 0; i < langNoIndexOffset; i++ {
12 | // We included "und" already for the value 0.
13 | if i != nonCanonicalUnd {
14 | base = append(base, Language(i))
15 | }
16 | }
17 | i := langNoIndexOffset
18 | for _, v := range langNoIndex {
19 | for k := 0; k < 8; k++ {
20 | if v&1 == 1 {
21 | base = append(base, Language(i))
22 | }
23 | v >>= 1
24 | i++
25 | }
26 | }
27 | return base
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/text/internal/number/roundingmode_string.go:
--------------------------------------------------------------------------------
1 | // Code generated by "stringer -type RoundingMode"; DO NOT EDIT.
2 |
3 | package number
4 |
5 | import "strconv"
6 |
7 | func _() {
8 | // An "invalid array index" compiler error signifies that the constant values have changed.
9 | // Re-run the stringer command to generate them again.
10 | var x [1]struct{}
11 | _ = x[ToNearestEven-0]
12 | _ = x[ToNearestZero-1]
13 | _ = x[ToNearestAway-2]
14 | _ = x[ToPositiveInf-3]
15 | _ = x[ToNegativeInf-4]
16 | _ = x[ToZero-5]
17 | _ = x[AwayFromZero-6]
18 | _ = x[numModes-7]
19 | }
20 |
21 | const _RoundingMode_name = "ToNearestEvenToNearestZeroToNearestAwayToPositiveInfToNegativeInfToZeroAwayFromZeronumModes"
22 |
23 | var _RoundingMode_index = [...]uint8{0, 13, 26, 39, 52, 65, 71, 83, 91}
24 |
25 | func (i RoundingMode) String() string {
26 | if i >= RoundingMode(len(_RoundingMode_index)-1) {
27 | return "RoundingMode(" + strconv.FormatInt(int64(i), 10) + ")"
28 | }
29 | return _RoundingMode_name[_RoundingMode_index[i]:_RoundingMode_index[i+1]]
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/text/message/catalog/go19.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build go1.9
6 |
7 | package catalog
8 |
9 | import "golang.org/x/text/internal/catmsg"
10 |
11 | // A Message holds a collection of translations for the same phrase that may
12 | // vary based on the values of substitution arguments.
13 | type Message = catmsg.Message
14 |
15 | type firstInSequence = catmsg.FirstOf
16 |
--------------------------------------------------------------------------------
/vendor/golang.org/x/text/message/catalog/gopre19.go:
--------------------------------------------------------------------------------
1 | // Copyright 2017 The Go Authors. All rights reserved.
2 | // Use of this source code is governed by a BSD-style
3 | // license that can be found in the LICENSE file.
4 |
5 | //go:build !go1.9
6 |
7 | package catalog
8 |
9 | import "golang.org/x/text/internal/catmsg"
10 |
11 | // A Message holds a collection of translations for the same phrase that may
12 | // vary based on the values of substitution arguments.
13 | type Message interface {
14 | catmsg.Message
15 | }
16 |
17 | func firstInSequence(m []Message) catmsg.Message {
18 | a := []catmsg.Message{}
19 | for _, m := range m {
20 | a = append(a, m)
21 | }
22 | return catmsg.FirstOf(a)
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/ini.v1/.editorconfig:
--------------------------------------------------------------------------------
1 | # http://editorconfig.org
2 |
3 | root = true
4 |
5 | [*]
6 | charset = utf-8
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*_test.go]
12 | trim_trailing_whitespace = false
13 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/ini.v1/.gitignore:
--------------------------------------------------------------------------------
1 | testdata/conf_out.ini
2 | ini.sublime-project
3 | ini.sublime-workspace
4 | testdata/conf_reflect.ini
5 | .idea
6 | /.vscode
7 | .DS_Store
8 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/ini.v1/.golangci.yml:
--------------------------------------------------------------------------------
1 | linters-settings:
2 | staticcheck:
3 | checks: [
4 | "all",
5 | "-SA1019" # There are valid use cases of strings.Title
6 | ]
7 | nakedret:
8 | max-func-lines: 0 # Disallow any unnamed return statement
9 |
10 | linters:
11 | enable:
12 | - deadcode
13 | - errcheck
14 | - gosimple
15 | - govet
16 | - ineffassign
17 | - staticcheck
18 | - structcheck
19 | - typecheck
20 | - unused
21 | - varcheck
22 | - nakedret
23 | - gofmt
24 | - rowserrcheck
25 | - unconvert
26 | - goimports
27 | - unparam
28 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/ini.v1/Makefile:
--------------------------------------------------------------------------------
1 | .PHONY: build test bench vet coverage
2 |
3 | build: vet bench
4 |
5 | test:
6 | go test -v -cover -race
7 |
8 | bench:
9 | go test -v -cover -test.bench=. -test.benchmem
10 |
11 | vet:
12 | go vet
13 |
14 | coverage:
15 | go test -coverprofile=c.out && go tool cover -html=c.out && rm c.out
16 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/ini.v1/codecov.yml:
--------------------------------------------------------------------------------
1 | coverage:
2 | range: "60...95"
3 | status:
4 | project:
5 | default:
6 | threshold: 1%
7 | informational: true
8 | patch:
9 | defualt:
10 | only_pulls: true
11 | informational: true
12 |
13 | comment:
14 | layout: 'diff'
15 |
16 | github_checks: false
17 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/ini.v1/deprecated.go:
--------------------------------------------------------------------------------
1 | // Copyright 2019 Unknwon
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License"): you may
4 | // not use this file except in compliance with the License. You may obtain
5 | // a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 | // License for the specific language governing permissions and limitations
13 | // under the License.
14 |
15 | package ini
16 |
17 | var (
18 | // Deprecated: Use "DefaultSection" instead.
19 | DEFAULT_SECTION = DefaultSection
20 | // Deprecated: AllCapsUnderscore converts to format ALL_CAPS_UNDERSCORE.
21 | AllCapsUnderscore = SnackCase
22 | )
23 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/ini.v1/helper.go:
--------------------------------------------------------------------------------
1 | // Copyright 2019 Unknwon
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License"): you may
4 | // not use this file except in compliance with the License. You may obtain
5 | // a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 | // License for the specific language governing permissions and limitations
13 | // under the License.
14 |
15 | package ini
16 |
17 | func inSlice(str string, s []string) bool {
18 | for _, v := range s {
19 | if str == v {
20 | return true
21 | }
22 | }
23 | return false
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/yaml.v3/NOTICE:
--------------------------------------------------------------------------------
1 | Copyright 2011-2016 Canonical Ltd.
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.
14 |
--------------------------------------------------------------------------------