1
1
Package mold
2
2
============
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 )
4
4
[ ![ Build Status] ( https://travis-ci.org/go-playground/mold.svg?branch=v2 )] ( https://travis-ci.org/go-playground/mold )
5
5
[ ![ Coverage Status] ( https://coveralls.io/repos/github/go-playground/mold/badge.svg?branch=v2 )] ( https://coveralls.io/github/go-playground/mold?branch=v2 )
6
6
[ ![ 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
35
35
----------
36
36
These functions modify the data in-place.
37
37
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. |
58
59
59
60
60
61
61
62
Scrubbers
62
63
----------
63
64
These functions obfuscate the specified types within the data for pii purposes.
64
65
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. |
73
74
74
75
75
76
Special Information
@@ -78,8 +79,8 @@ Special Information
78
79
79
80
Contributing
80
81
------------
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
83
84
has been built.
84
85
85
86
Complimentary Software
0 commit comments