coal/model.go
func (b *Base) MustGet(name string) interface{} {
	// find field
	field := b.meta.Fields[name]
	if field == nil {
		panic(fmt.Sprintf(`coal: field "%s" not found on "%s"`, name, b.meta.Name))
	}

	// read value from model struct
	structField := reflect.ValueOf(b.model).Elem().Field(field.index)
	return structField.Interface()
}
func (b *Base) MustGet(name string) interface{} {
	// find field
	field := b.meta.Fields[name]
	if field == nil {
		panic(fmt.Sprintf(`coal: field "%s" not found on "%s"`, name, b.meta.Name))
	}

	// read value from model struct
	structField := reflect.ValueOf(b.model).Elem().Field(field.index)
	return structField.Interface()
}
// MustGet returns the value of the given field. MustGet will panic if no field
// has been found.