11Package mold
22============
3- ![ Project status] ( https://img.shields.io/badge/version-4.2.1 -green.svg )
3+ ![ Project status] ( https://img.shields.io/badge/version-4.3.0 -green.svg )
44[ ![ Build Status] ( https://travis-ci.org/go-playground/mold.svg?branch=v2 )] ( https://travis-ci.org/go-playground/mold )
55[ ![ Coverage Status] ( https://coveralls.io/repos/github/go-playground/mold/badge.svg?branch=v2 )] ( https://coveralls.io/github/go-playground/mold?branch=v2 )
66[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/go-playground/mold )] ( https://goreportcard.com/report/github.com/go-playground/mold )
@@ -35,41 +35,42 @@ Modifiers
3535----------
3636These functions modify the data in-place.
3737
38- | Name | Description |
39- | -------| --------------|
40- | camel | Camel Cases the data. |
41- | default | Sets the provided default value only if the data is equal to it's default datatype value. |
42- | empty | Sets the field equal to the datatype default value. e.g. 0 for int. |
43- | lcase | lowercases the data. |
44- | ltrim | Trims spaces from the left of the data provided in the params. |
45- | rtrim | Trims spaces from the right of the data provided in the params. |
46- | snake | Snake Cases the data. |
47- | strip_alpha | Strips all ascii characters from the data. |
48- | strip_alpha_unicode | Strips all unicode characters from the data. |
49- | strip_num | Strips all ascii numeric characters from the data. |
50- | strip_num_unicode | Strips all unicode numeric characters from the data. |
51- | strip_punctuation | Strips all ascii punctuation from the data. |
52- | title | Title Cases the data. |
53- | tprefix | Trims a prefix from the value using the provided param value. |
54- | trim | Trims space from the data. |
55- | tsuffix | Trims a suffix from the value using the provided param value. |
56- | ucase | Uppercases the data. |
57- | ucfirst | Upper cases the first character of the data. |
38+ | Name | Description |
39+ | ---------------------| -------------------------------------------------------------------------------------------|
40+ | camel | Camel Cases the data. |
41+ | default | Sets the provided default value only if the data is equal to it's default datatype value. |
42+ | empty | Sets the field equal to the datatype default value. e.g. 0 for int. |
43+ | lcase | lowercases the data. |
44+ | ltrim | Trims spaces from the left of the data provided in the params. |
45+ | rtrim | Trims spaces from the right of the data provided in the params. |
46+ | set | Set the provided value. |
47+ | snake | Snake Cases the data. |
48+ | strip_alpha | Strips all ascii characters from the data. |
49+ | strip_alpha_unicode | Strips all unicode characters from the data. |
50+ | strip_num | Strips all ascii numeric characters from the data. |
51+ | strip_num_unicode | Strips all unicode numeric characters from the data. |
52+ | strip_punctuation | Strips all ascii punctuation from the data. |
53+ | title | Title Cases the data. |
54+ | tprefix | Trims a prefix from the value using the provided param value. |
55+ | trim | Trims space from the data. |
56+ | tsuffix | Trims a suffix from the value using the provided param value. |
57+ | ucase | Uppercases the data. |
58+ | ucfirst | Upper cases the first character of the data. |
5859
5960
6061
6162Scrubbers
6263----------
6364These functions obfuscate the specified types within the data for pii purposes.
6465
65- | Name | Description |
66- | -------| --------------|
67- | emails | Scrubs multiple emails from data. |
68- | email | Scrubs the data from and specifies the sha name of the same name. |
69- | text | Scrubs the data from and specifies the sha name of the same name. |
70- | name | Scrubs the data from and specifies the sha name of the same name. |
71- | fname | Scrubs the data from and specifies the sha name of the same name. |
72- | lname | Scrubs the data from and specifies the sha name of the same name. |
66+ | Name | Description |
67+ | -------- | ----------------------------------------------------- --------------|
68+ | emails | Scrubs multiple emails from data. |
69+ | email | Scrubs the data from and specifies the sha name of the same name. |
70+ | text | Scrubs the data from and specifies the sha name of the same name. |
71+ | name | Scrubs the data from and specifies the sha name of the same name. |
72+ | fname | Scrubs the data from and specifies the sha name of the same name. |
73+ | lname | Scrubs the data from and specifies the sha name of the same name. |
7374
7475
7576Special Information
@@ -78,8 +79,8 @@ Special Information
7879
7980Contributing
8081------------
81- I am definitly interested in the communities help in adding more scrubbers and modifiers.
82- Please send a PR with tests, and prefereably no extra dependencies, at lease until a solid base
82+ I am definitely interested in the communities help in adding more scrubbers and modifiers.
83+ Please send a PR with tests, and preferably no extra dependencies, at lease until a solid base
8384has been built.
8485
8586Complimentary Software
0 commit comments