mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-26 11:28:46 +08:00
13 lines
201 B
Go
13 lines
201 B
Go
package util
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestFormatField(t *testing.T) {
|
|
var in = "go_java"
|
|
snakeCase, upperCase, lowerCase := FormatField(in)
|
|
fmt.Println(snakeCase, upperCase, lowerCase)
|
|
}
|