code: func createParameter(paramType, description, paramName, schemaType string, required bool) spec.Parameter {
  	// //five possible parameter types. 	query, path, body, header, form
  	paramProps := spec.ParamProps{
  		Name:        paramName,
  		Description: description,
  		Required:    required,
  		In:          paramType,
  	}
  	if paramType == "body" {
  		paramProps.Schema = &spec.Schema{
  			SchemaProps: spec.SchemaProps{
  				Type: []string{schemaType},
  			},
  		}
  		parameter := spec.Parameter{
  			ParamProps: paramProps,
  		}
  		return parameter
  	}
  	parameter := spec.Parameter{
  		ParamProps: paramProps,
  		SimpleSchema: spec.SimpleSchema{
  			Type: schemaType,
  		},
  	}
  	return parameter
  }
docs: // createParameter returns swagger spec.Parameter for gived  paramType, description, paramName, schemaType, required