You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
301 B

  1. package schema
  2. import (
  3. "fmt"
  4. "testing"
  5. )
  6. func TestSchemaBuilder(t *testing.T) {
  7. rtb := NewRecordTypeBuilder()
  8. rtb.AddStringField("ID").
  9. AddLongField("CreatedAt").
  10. AddLongField("ModifiedAt").
  11. AddStringField("User")
  12. recordType := rtb.Build()
  13. fmt.Printf("RecordType: %v\n", recordType)
  14. }