code: func (f *Function) versions() ([]*lambda.FunctionConfiguration, error) {
  	var list []*lambda.FunctionConfiguration
  	request := lambda.ListVersionsByFunctionInput{
  		FunctionName: &f.FunctionName,
  	}
  
  	for {
  		page, err := f.Service.ListVersionsByFunction(&request)
  
  		if err != nil {
  			return nil, err
  		}
  
  		list = append(list, page.Versions...)
  
  		if page.NextMarker == nil {
  			break
  		}
  
  		request.Marker = page.NextMarker
  	}
  
  	versions := list[1:] // remove $LATEST
  	return versions, nil
  }
docs: // versions returns list of all versions deployed to AWS Lambda