strings

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunStrings

func RunStrings(w io.Writer, args []string, opts StringsOptions) error

RunStrings prints printable strings in files

Types

type StringEntry

type StringEntry struct {
	Value  string `json:"value"`
	Offset int64  `json:"offset,omitempty"`
}

StringEntry represents a single string found

type StringsOptions

type StringsOptions struct {
	MinLength   int    // -n: print sequences of at least N characters
	Offset      string // -t: print offset (d=decimal, o=octal, x=hex)
	AllSections bool   // -a: scan whole file (default)
	Encoding    string // -e: encoding (s=7-bit, S=8-bit, etc)
	JSON        bool   // --json: output as JSON
}

StringsOptions configures the strings command behavior

type StringsResult

type StringsResult struct {
	Strings []StringEntry `json:"strings"`
	Count   int           `json:"count"`
}

StringsResult represents strings output for JSON

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL