mold icon indicating copy to clipboard operation
mold copied to clipboard

:scissors: Is a general library to help modify or set data within data structures and other objects.

Results 10 mold issues
Sort by recently updated
recently updated
newest added

I sometimes get "yes" or "no" inputs, but I'm only interested in the first character ("y" or "n"). I think substring will be a handy addition, as it'll allow users...

Use case: ```go type A struct { M map[string]*B `mod:"dive"` // WANTED: `mod:"dive,keys,trim,endkeys,dive"` } type B struct { S string `mod:"trim"` } ``` With "dive" on M it will process...

Do you have any example how to setup gin with v9 and modifiers/scrubbers? Coming from other languages this seems like a nice way to handle it without writing a custom...

What do you think about conform's `email`? https://github.com/leebenson/conform/blob/master/conform.go#L31-L51

Add it to https://github.com/avelino/awesome-go.

What I miss using this instead of https://github.com/leebenson/conform is the check of embedded structs: https://github.com/leebenson/conform/blob/master/conform.go#L272. Can we add this? Maybe optional (default: true) with a tag: `mod:"embedded=false"`. What do you...

The comment was misleading using "not" instead of what I assumed should be "now"

Bumps gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9e77c to 3.0.0. [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=gopkg.in/yaml.v3&package-manager=go_modules&previous-version=3.0.0-20200313102051-9f266ea9e77c&new-version=3.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...

dependencies

https://github.com/go-playground/mold/blob/4214131ed726fa5c2ec3f1d943ac4e696ed523fe/scrubbers/string.go#L17 Maybe this? ```go scrubbed := fmt.Sprintf("", hashString(input[:idx])) ``` Should hash the string before `@`?