conform

Field Formatter

Automatically trims and sanitizes struct string fields in Go based on embedded tags.

Trims, sanitizes & scrubs data based on struct tags (go, golang)

GitHub

323 stars
6 watching
36 forks
Language: Go
last commit: about 1 year ago
Linked from 2 awesome lists


Backlinks from these awesome lists:

Related projects:

Repository Description Stars
nolleh/caption_json_formatter Formatter for log messages in Go applications, enabling human-readable output with customizable formatting options. 4
greencoda/confiq A library for populating structs with data from various formats. 35
ghostiam/binstruct Decodes binary data into structured format 99
cgxxv/xj2go A tool to convert data from XML or JSON formats into Go structs. 34
drewstinnett/gout A utility package for formatting and serializing data in standard formats. 17
alexflint/go-restructure Enables regular expressions to be defined as struct fields and captures sub-expressions into those fields 591
anacrolix/tagflag Tool for declaratively parsing command-line flags in Go using struct tags. 11
alexflint/go-arg Provides a structured approach to parsing command-line arguments in Go 2,046
andrewstuart/goq Allows users to declaratively unmarshal HTML into Go structs using struct tags composed of CSS selectors. 262
gobwas/glob A Go library for efficient string matching using compile-time glob patterns. 968
go-ffmt/ffmt Golang beautifies data display by providing formatting options for humans 308
samber/slog-formatter A library that provides attribute formatting for structured logging in Go. 133
go-playground/form A Go package for encoding and decoding URL parameters into structured data types 781
bitfield/gotestdox Formats Go test results as readable documentation 122
twharmon/govalid Struct validation using tags 51