data.go raw

   1  package meta
   2  
   3  type (
   4  	// Data is the information about the opt to be used by interface code and other presentations of the data
   5  	Data struct {
   6  		Option        string
   7  		Aliases       []string
   8  		Group         string
   9  		Tags          []string
  10  		Label         string
  11  		Description   string
  12  		Documentation string
  13  		Type          string
  14  		Options       []string
  15  		OmitEmpty     bool
  16  		Name          string
  17  		DefaultPort   int
  18  	}
  19  )
  20  
  21  func (m Data) GetAllOptionStrings() (opts []string) {
  22  	opts = append([]string{m.Option}, m.Aliases...)
  23  	return opts
  24  }
  25