code: func ValidDataUnit(u string) bool {
  	for d := range DataUnits {
  		if u == d {
  			return true
  		}
  	}
  	return false
  }
docs: // ValidDataUnit makes sure the string passed in is an accepted
  // unit of measure to be used for the return data.