You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
look how it omitted ?## from string. If you dont want to omit anything and since it returns plain strings and you cant actually cap all or lower case all camelcase string its not required.
130
135
131
136
```go
132
137
camelCase:= stringy.New("ThisIsOne___messed up string. Can we Really camel-case It ?##")
@@ -375,6 +380,21 @@ Acronym func returns acronym of input string. You can chain ToUpper() which with
375
380
fmt.Println(acronym.Acronym().ToLower()) // lol
376
381
```
377
382
383
+
#### PascalCase(rule ...string) string
384
+
385
+
PascalCase is variadic function which takes one Param rule i.e slice of strings and it returns input type string in pascal case form and rule helps to omit character you want to omit from string. By default special characters like "_", "-","."," " are treated like word separator and treated accordingly by default and you don't have to worry about it.
386
+
387
+
```go
388
+
pascalCase:= stringy.New("ThisIsOne___messed up string. Can we Really pascal-case It ?##")
look how it omitted ?## from string. If you dont want to omit anything and since it returns plain strings and you cant actually cap all or lower case all camelcase string it's not required.
392
+
393
+
```go
394
+
pascalCase:= stringy.New("ThisIsOne___messed up string. Can we Really camel-case It ?##")
0 commit comments