StringerwithHook

command
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

README

Stringer with Hook Example

This example demonstrates how to use the stringer package with custom hooks for string conversion.

Features

  • Default string conversion for structs.
  • Creating a StringHook to customize output (e.g., redacting sensitive data).
  • Applying the hook using stringer.String.

Running

go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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