mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-27 04:08:39 +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)
|
||
|
}
|