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: 11 months 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 Go package for loading structured data into structs with mapping using tags and selectors. 35
ghostiam/binstruct Decodes binary data into structured format 97
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,032
andrewstuart/goq Allows users to declaratively unmarshal HTML into Go structs using struct tags composed of CSS selectors. 261
gobwas/glob A Go library for efficient string matching using compile-time glob patterns. 961
go-ffmt/ffmt Golang beautifies data display by providing formatting options for humans 305
samber/slog-formatter A library that provides attribute formatting for structured logging in Go. 122
go-playground/form A Go package for encoding and decoding URL parameters into structured data types 773
bitfield/gotestdox Formats Go test results as readable documentation 120
twharmon/govalid Struct validation using tags 46