mirror of
https://github.com/samber/lo.git
synced 2026-04-22 23:47:11 +08:00
29 lines
490 B
Markdown
29 lines
490 B
Markdown
---
|
|
name: PascalCase
|
|
slug: pascalcase
|
|
sourceRef: string.go#L166
|
|
category: core
|
|
subCategory: string
|
|
playUrl: https://go.dev/play/p/Dy_V_6DUYhe
|
|
variantHelpers:
|
|
- core#string#pascalcase
|
|
similarHelpers:
|
|
- core#string#camelcase
|
|
- core#string#snakecase
|
|
- core#string#kebabcase
|
|
- core#string#capitalize
|
|
- core#string#words
|
|
position: 40
|
|
signatures:
|
|
- "func PascalCase(str string) string"
|
|
---
|
|
|
|
Converts a string to PascalCase.
|
|
|
|
```go
|
|
lo.PascalCase("hello_world")
|
|
// "HelloWorld"
|
|
```
|
|
|
|
|