0

This is a model in Node.js:

var test = sequelize.define('test', 
  {
    status_ind: { 
      type: DataTypes.ENUM('active', 'inactive', 'deleted'), 
      defaultValue: 'active' 
    },
    completed_ind: { 
      type: DataTypes.ENUM('initiated','started', 'failed', 'completed','concurrency-breached','stopped-concurrency-breached'), 
      defaultValue: 'started' 
    }
  }

I want to convert this code into a Go model.

How can I achieve this?

type example struct {
   status_ind <????>
}
mkrieger1
  • 10,793
  • 4
  • 39
  • 47

0 Answers0