// NewCore initializes all the values, user specified and default, needed for
// user's core to be usable and returns it.
NewCore initializes all the values, user specified and default, needed for
user's core to be usable and returns it.
// NewCore initializes all the values user specified and default needed for // user ' s core to be usable and returns it .
func NewCore(inp Inputer) (*Core, error) {
	c := &Core{
		ID:        xid.New(),
		CreatedAt: timeutil.Now(),
	}
	if _, err := c.ApplyInput(inp); err != nil {
		return nil, err
	}
	return c, nil
}
func NewCore ( inp Inputer ) ( * Core , error ) { c := & Core { ID : xid . New ( ) , CreatedAt : timeutil . Now ( ) , } if _ , err := c . ApplyInput ( inp ) ; err != nil { return nil , err } return c , nil }
NewCore initializes all the values, user specified and default, needed for
user's core to be usable and returns it.
NewCore initializes all the values user specified and default needed for user ' s core to be usable and returns it .