conversations listlengths 2 2 |
|---|
[
{
"from": "human",
"value": "Compile a main package into an executable, enabling data race detection via the `go-build` command"
},
{
"from": "gpt",
"value": "`go build -race -o {{path/to/executable}} {{path/to/main/package}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `gobuster`."
},
{
"from": "gpt",
"value": "Brute-forces hidden paths on web servers and more.\nMore information: <https://github.com/OJ/gobuster>.\n"
}
] |
[
{
"from": "human",
"value": "Discover directories and files that match in the wordlist via the `gobuster` command"
},
{
"from": "gpt",
"value": "`gobuster dir --url {{https://example.com/}} --wordlist {{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Discover subdomains via the `gobuster` command"
},
{
"from": "gpt",
"value": "`gobuster dns --domain {{example.com}} --wordlist {{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Discover Amazon S3 buckets via the `gobuster` command"
},
{
"from": "gpt",
"value": "`gobuster s3 --wordlist {{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Discover other virtual hosts on the server via the `gobuster` command"
},
{
"from": "gpt",
"value": "`gobuster vhost --url {{https://example.com/}} --wordlist {{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Fuzz the value of a parameter via the `gobuster` command"
},
{
"from": "gpt",
"value": "`gobuster fuzz --url {{https://example.com/?parameter=FUZZ}} --wordlist {{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Fuzz the name of a parameter via the `gobuster` command"
},
{
"from": "gpt",
"value": "`gobuster fuzz --url {{https://example.com/?FUZZ=value}} --wordlist {{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `go clean`."
},
{
"from": "gpt",
"value": "Remove object files and cached files.\nMore information: <https://golang.org/cmd/go/#hdr-Remove_object_files_and_cached_files>.\n"
}
] |
[
{
"from": "human",
"value": "Print the remove commands instead of actually removing anything via the `go-clean` command"
},
{
"from": "gpt",
"value": "`go clean -n`"
}
] |
[
{
"from": "human",
"value": "Delete the build cache via the `go-clean` command"
},
{
"from": "gpt",
"value": "`go clean -cache`"
}
] |
[
{
"from": "human",
"value": "Delete all cached test results via the `go-clean` command"
},
{
"from": "gpt",
"value": "`go clean -testcache`"
}
] |
[
{
"from": "human",
"value": "Delete the module cache via the `go-clean` command"
},
{
"from": "gpt",
"value": "`go clean -modcache`"
}
] |
[
{
"from": "human",
"value": "Tell me about `gocr`."
},
{
"from": "gpt",
"value": "Optical Character Recognition tool.\nRecognize characters using its engine, and prompt the user for unknown patterns to store them in a database.\nMore information: <https://manned.org/gocr.1>.\n"
}
] |
[
{
"from": "human",
"value": "Recognize characters in the [i]nput image and [o]utput it in the given file. Put the database ([p]) in `path/to/db_directory` (verify that the folder exists or DB usage will silently be skipped). [m]ode 130 means create + use + extend database via the `gocr` command"
},
{
... |
[
{
"from": "human",
"value": "Recognize characters and assume all [C]haracters are numbers via the `gocr` command"
},
{
"from": "gpt",
"value": "`gocr -m 130 -p {{path/to/db_directory}} -i {{path/to/input_image.png}} -o {{path/to/output_file.txt}} -C \"{{0..9}}\"`"
}
] |
[
{
"from": "human",
"value": "Recognize characters with a cert[a]inty of 100% (characters have a higher chance to be treated as unknown) via the `gocr` command"
},
{
"from": "gpt",
"value": "`gocr -m 130 -p {{path/to/db_directory}} -i {{path/to/input_image.png}} -o {{path/to/output_file.txt}} -a ... |
[
{
"from": "human",
"value": "Tell me about `gocryptfs`."
},
{
"from": "gpt",
"value": "Encrypted overlay filesystem written in Go.\nMore information: <https://github.com/rfjakob/gocryptfs>.\n"
}
] |
[
{
"from": "human",
"value": "Initialize an encrypted filesystem via the `gocryptfs` command"
},
{
"from": "gpt",
"value": "`gocryptfs -init {{path/to/cipher_dir}}`"
}
] |
[
{
"from": "human",
"value": "Mount an encrypted filesystem via the `gocryptfs` command"
},
{
"from": "gpt",
"value": "`gocryptfs {{path/to/cipher_dir}} {{path/to/mount_point}}`"
}
] |
[
{
"from": "human",
"value": "Mount with the explicit master key instead of password via the `gocryptfs` command"
},
{
"from": "gpt",
"value": "`gocryptfs --masterkey {{path/to/cipher_dir}} {{path/to/mount_point}}`"
}
] |
[
{
"from": "human",
"value": "Change the password via the `gocryptfs` command"
},
{
"from": "gpt",
"value": "`gocryptfs --passwd {{path/to/cipher_dir}}`"
}
] |
[
{
"from": "human",
"value": "Make an encrypted snapshot of a plain directory via the `gocryptfs` command"
},
{
"from": "gpt",
"value": "`gocryptfs --reverse {{path/to/plain_dir}} {{path/to/cipher_dir}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `go doc`."
},
{
"from": "gpt",
"value": "View documentation for a package or symbol.\nMore information: <https://golang.org/cmd/go/#hdr-Show_documentation_for_package_or_symbol>.\n"
}
] |
[
{
"from": "human",
"value": "View documentation for the current package via the `go-doc` command"
},
{
"from": "gpt",
"value": "`go doc`"
}
] |
[
{
"from": "human",
"value": "Show package documentation and exported symbols via the `go-doc` command"
},
{
"from": "gpt",
"value": "`go doc {{encoding/json}}`"
}
] |
[
{
"from": "human",
"value": "Show also documentation of symbols via the `go-doc` command"
},
{
"from": "gpt",
"value": "`go doc -all {{encoding/json}}`"
}
] |
[
{
"from": "human",
"value": "Show also sources via the `go-doc` command"
},
{
"from": "gpt",
"value": "`go doc -all -src {{encoding/json}}`"
}
] |
[
{
"from": "human",
"value": "Show a specific symbol via the `go-doc` command"
},
{
"from": "gpt",
"value": "`go doc -all -src {{encoding/json.Number}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `godoc`."
},
{
"from": "gpt",
"value": "View documentation for go packages.\nMore information: <https://godoc.org/>.\n"
}
] |
[
{
"from": "human",
"value": "Display help for a specific package via the `godoc` command"
},
{
"from": "gpt",
"value": "`godoc {{fmt}}`"
}
] |
[
{
"from": "human",
"value": "Display help for the function \"Printf\" of \"fmt\" package via the `godoc` command"
},
{
"from": "gpt",
"value": "`godoc {{fmt}} {{Printf}}`"
}
] |
[
{
"from": "human",
"value": "Serve documentation as a web server on port 6060 via the `godoc` command"
},
{
"from": "gpt",
"value": "`godoc -http=:{{6060}}`"
}
] |
[
{
"from": "human",
"value": "Create an index file via the `godoc` command"
},
{
"from": "gpt",
"value": "`godoc -write_index -index_files={{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Use the given index file to search the docs via the `godoc` command"
},
{
"from": "gpt",
"value": "`godoc -http=:{{6060}} -index -index_files={{path/to/file}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `godot`."
},
{
"from": "gpt",
"value": "An open source 2D and 3D game engine.\nMore information: <https://godotengine.org/>.\n"
}
] |
[
{
"from": "human",
"value": "Run a project if the current directory contains a `project.godot` file, otherwise open the project manager via the `godot` command"
},
{
"from": "gpt",
"value": "`godot`"
}
] |
[
{
"from": "human",
"value": "Edit a project (the current directory must contain a `project.godot` file) via the `godot` command"
},
{
"from": "gpt",
"value": "`godot -e`"
}
] |
[
{
"from": "human",
"value": "Open the project manager even if the current directory contains a `project.godot` file via the `godot` command"
},
{
"from": "gpt",
"value": "`godot -p`"
}
] |
[
{
"from": "human",
"value": "Export a project for a given export preset (the preset must be defined in the project) via the `godot` command"
},
{
"from": "gpt",
"value": "`godot --export {{preset}} {{output_path}}`"
}
] |
[
{
"from": "human",
"value": "Execute a standalone GDScript file (the script must inherit from `SceneTree` or `MainLoop`) via the `godot` command"
},
{
"from": "gpt",
"value": "`godot -s {{script.gd}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `go env`."
},
{
"from": "gpt",
"value": "Manage environment variables used by the Go toolchain.\nMore information: <https://golang.org/cmd/go/#hdr-Print_Go_environment_information>.\n"
}
] |
[
{
"from": "human",
"value": "Show all environment variables via the `go-env` command"
},
{
"from": "gpt",
"value": "`go env`"
}
] |
[
{
"from": "human",
"value": "Show a specific environment variable via the `go-env` command"
},
{
"from": "gpt",
"value": "`go env {{GOPATH}}`"
}
] |
[
{
"from": "human",
"value": "Set an environment variable to a value via the `go-env` command"
},
{
"from": "gpt",
"value": "`go env -w {{GOBIN}}={{path/to/directory}}`"
}
] |
[
{
"from": "human",
"value": "Reset an environment variable's value via the `go-env` command"
},
{
"from": "gpt",
"value": "`go env -u {{GOBIN}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `goenv`."
},
{
"from": "gpt",
"value": "Install, uninstall or switch between Golang versions.\nSupports version numbers like \"1.16.15\" or \"1.22.8\" etc.\nMore information: <https://github.com/go-nv/goenv>.\n"
}
] |
[
{
"from": "human",
"value": "List all available goenv commands via the `goenv` command"
},
{
"from": "gpt",
"value": "`goenv commands`"
}
] |
[
{
"from": "human",
"value": "Install a specific version of Golang via the `goenv` command"
},
{
"from": "gpt",
"value": "`goenv install {{go_version}}`"
}
] |
[
{
"from": "human",
"value": "Use a specific version of Golang in the current project via the `goenv` command"
},
{
"from": "gpt",
"value": "`goenv local {{go_version}}`"
}
] |
[
{
"from": "human",
"value": "Set the default Golang version via the `goenv` command"
},
{
"from": "gpt",
"value": "`goenv global {{go_version}}`"
}
] |
[
{
"from": "human",
"value": "List all available Golang versions and highlight the default one via the `goenv` command"
},
{
"from": "gpt",
"value": "`goenv versions`"
}
] |
[
{
"from": "human",
"value": "Uninstall a given Go version via the `goenv` command"
},
{
"from": "gpt",
"value": "`goenv uninstall {{go_version}}`"
}
] |
[
{
"from": "human",
"value": "Run an executable with the selected Go version via the `goenv` command"
},
{
"from": "gpt",
"value": "`goenv exec go run {{go_version}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `go fix`."
},
{
"from": "gpt",
"value": "Update packages to use new APIs.\nMore information: <https://golang.org/cmd/go/#hdr-Update_packages_to_use_new_APIs>.\n"
}
] |
[
{
"from": "human",
"value": "Update packages to use new APIs via the `go-fix` command"
},
{
"from": "gpt",
"value": "`go fix {{packages}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `go fmt`."
},
{
"from": "gpt",
"value": "Format Go source files, printing the changed filenames.\nMore information: <https://pkg.go.dev/cmd/go#hdr-Gofmt__reformat__package_sources>.\n"
}
] |
[
{
"from": "human",
"value": "Format Go source files in the current directory via the `go-fmt` command"
},
{
"from": "gpt",
"value": "`go fmt`"
}
] |
[
{
"from": "human",
"value": "Format a specific Go package in your import path (`$GOPATH/src`) via the `go-fmt` command"
},
{
"from": "gpt",
"value": "`go fmt {{path/to/package}}`"
}
] |
[
{
"from": "human",
"value": "Format the package in the current directory and all subdirectories (note the `...`) via the `go-fmt` command"
},
{
"from": "gpt",
"value": "`go fmt {{./...}}`"
}
] |
[
{
"from": "human",
"value": "Print what format commands would've been run, without modifying anything via the `go-fmt` command"
},
{
"from": "gpt",
"value": "`go fmt -n`"
}
] |
[
{
"from": "human",
"value": "Print which format commands are run as they are run via the `go-fmt` command"
},
{
"from": "gpt",
"value": "`go fmt -x`"
}
] |
[
{
"from": "human",
"value": "Tell me about `gofmt`."
},
{
"from": "gpt",
"value": "Format Go source code.\nMore information: <https://golang.org/cmd/gofmt/>.\n"
}
] |
[
{
"from": "human",
"value": "Format a file and display the result to the console via the `gofmt` command"
},
{
"from": "gpt",
"value": "`gofmt {{source.go}}`"
}
] |
[
{
"from": "human",
"value": "Format a file, overwriting the original file in-place via the `gofmt` command"
},
{
"from": "gpt",
"value": "`gofmt -w {{source.go}}`"
}
] |
[
{
"from": "human",
"value": "Format a file, and then simplify the code, overwriting the original file via the `gofmt` command"
},
{
"from": "gpt",
"value": "`gofmt -s -w {{source.go}}`"
}
] |
[
{
"from": "human",
"value": "Print all (including spurious) errors via the `gofmt` command"
},
{
"from": "gpt",
"value": "`gofmt -e {{source.go}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `go generate`."
},
{
"from": "gpt",
"value": "Generate Go files by running commands within source files.\nMore information: <https://golang.org/cmd/go/#hdr-Generate_Go_files_by_processing_source>.\n"
}
] |
[
{
"from": "human",
"value": "Generate Go files by running commands within source files via the `go-generate` command"
},
{
"from": "gpt",
"value": "`go generate`"
}
] |
[
{
"from": "human",
"value": "Tell me about `go get`."
},
{
"from": "gpt",
"value": "Add a dependency package, or download packages in legacy GOPATH mode.\nMore information: <https://pkg.go.dev/cmd/go#hdr-Add_dependencies_to_current_module_and_install_them>.\n"
}
] |
[
{
"from": "human",
"value": "Add a specified package to `go.mod` in module-mode or install the package in GOPATH-mode via the `go-get` command"
},
{
"from": "gpt",
"value": "`go get {{example.com/pkg}}`"
}
] |
[
{
"from": "human",
"value": "Modify the package with a given version in module-aware mode via the `go-get` command"
},
{
"from": "gpt",
"value": "`go get {{example.com/pkg}}@{{v1.2.3}}`"
}
] |
[
{
"from": "human",
"value": "Remove a specified package via the `go-get` command"
},
{
"from": "gpt",
"value": "`go get {{example.com/pkg}}@{{none}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `goimports`."
},
{
"from": "gpt",
"value": "Updates Go import lines, adding missing ones and removing unreferenced ones.\nMore information: <https://godoc.org/golang.org/x/tools/cmd/goimports>.\n"
}
] |
[
{
"from": "human",
"value": "Display the completed import source file via the `goimports` command"
},
{
"from": "gpt",
"value": "`goimports {{path/to/file.go}}`"
}
] |
[
{
"from": "human",
"value": "Write the result back to the source file instead of `stdout` via the `goimports` command"
},
{
"from": "gpt",
"value": "`goimports -w {{path/to/file.go}}`"
}
] |
[
{
"from": "human",
"value": "Display diffs and write the result back to the source file via the `goimports` command"
},
{
"from": "gpt",
"value": "`goimports -w -d {{path/to/file.go}}`"
}
] |
[
{
"from": "human",
"value": "Set the import prefix string after 3rd-party packages (comma-separated list) via the `goimports` command"
},
{
"from": "gpt",
"value": "`goimports -local {{path/to/package1,path/to/package2,...}} {{path/to/file.go}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `go install`."
},
{
"from": "gpt",
"value": "Compile and install packages named by the import paths.\nMore information: <https://pkg.go.dev/cmd/go#hdr-Compile_and_install_packages_and_dependencies>.\n"
}
] |
[
{
"from": "human",
"value": "Compile and install the current package via the `go-install` command"
},
{
"from": "gpt",
"value": "`go install`"
}
] |
[
{
"from": "human",
"value": "Compile and install a specific local package via the `go-install` command"
},
{
"from": "gpt",
"value": "`go install {{path/to/package}}`"
}
] |
[
{
"from": "human",
"value": "Install the latest version of a program, ignoring `go.mod` in the current directory via the `go-install` command"
},
{
"from": "gpt",
"value": "`go install {{golang.org/x/tools/gopls}}@{{latest}}`"
}
] |
[
{
"from": "human",
"value": "Install a program at the version selected by `go.mod` in the current directory via the `go-install` command"
},
{
"from": "gpt",
"value": "`go install {{golang.org/x/tools/gopls}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `golangci-lint`."
},
{
"from": "gpt",
"value": "Parallelized, smart and fast Go linters runner that integrates with all major IDEs and supports YAML configuration.\nMore information: <https://golangci-lint.run/welcome/quick-start/>.\n"
}
] |
[
{
"from": "human",
"value": "Run linters in the current folder via the `golangci-lint` command"
},
{
"from": "gpt",
"value": "`golangci-lint run`"
}
] |
[
{
"from": "human",
"value": "List enabled and disabled linters (Note: disabled linters are shown last, do not mistake them for enabled ones) via the `golangci-lint` command"
},
{
"from": "gpt",
"value": "`golangci-lint linters`"
}
] |
[
{
"from": "human",
"value": "Enable a specific linter for this run via the `golangci-lint` command"
},
{
"from": "gpt",
"value": "`golangci-lint run {{[-E|--enable]}} {{linter}}`"
}
] |
[
{
"from": "human",
"value": "Tell me about `go list`."
},
{
"from": "gpt",
"value": "List packages or modules.\nMore information: <https://golang.org/cmd/go/#hdr-List_packages_or_modules>.\n"
}
] |
[
{
"from": "human",
"value": "List packages via the `go-list` command"
},
{
"from": "gpt",
"value": "`go list ./...`"
}
] |
[
{
"from": "human",
"value": "List standard packages via the `go-list` command"
},
{
"from": "gpt",
"value": "`go list std`"
}
] |
[
{
"from": "human",
"value": "List packages in JSON format via the `go-list` command"
},
{
"from": "gpt",
"value": "`go list -json time net/http`"
}
] |
[
{
"from": "human",
"value": "List module dependencies and available updates via the `go-list` command"
},
{
"from": "gpt",
"value": "`go list -m -u all`"
}
] |
[
{
"from": "human",
"value": "Tell me about `go`."
},
{
"from": "gpt",
"value": "Manage Go source code.\nSome subcommands such as `build` have their own usage documentation.\nMore information: <https://golang.org>.\n"
}
] |
[
{
"from": "human",
"value": "Download and install a package, specified by its import path via the `go` command"
},
{
"from": "gpt",
"value": "`go get {{package_path}}`"
}
] |
[
{
"from": "human",
"value": "Compile and run a source file (it has to contain a `main` package) via the `go` command"
},
{
"from": "gpt",
"value": "`go run {{file}}.go`"
}
] |
[
{
"from": "human",
"value": "Compile a source file into a named executable via the `go` command"
},
{
"from": "gpt",
"value": "`go build -o {{executable}} {{file}}.go`"
}
] |
[
{
"from": "human",
"value": "Compile the package present in the current directory via the `go` command"
},
{
"from": "gpt",
"value": "`go build`"
}
] |
[
{
"from": "human",
"value": "Execute all test cases of the current package (files have to end with `_test.go`) via the `go` command"
},
{
"from": "gpt",
"value": "`go test`"
}
] |
[
{
"from": "human",
"value": "Compile and install the current package via the `go` command"
},
{
"from": "gpt",
"value": "`go install`"
}
] |
[
{
"from": "human",
"value": "Initialize a new module in the current directory via the `go` command"
},
{
"from": "gpt",
"value": "`go mod init {{module_name}}`"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.