mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-15 19:26:42 +08:00
18 lines
301 B
Go
18 lines
301 B
Go
package schema
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestSchemaBuilder(t *testing.T) {
|
|
rtb := NewRecordTypeBuilder()
|
|
rtb.AddStringField("ID").
|
|
AddLongField("CreatedAt").
|
|
AddLongField("ModifiedAt").
|
|
AddStringField("User")
|
|
recordType := rtb.Build()
|
|
fmt.Printf("RecordType: %v\n", recordType)
|
|
|
|
}
|