idx
int64
0
41.8k
question
stringlengths
64
85.5k
target
stringlengths
8
1.22k
200
func ( s * BootstrapActionConfig ) SetScriptBootstrapAction ( v * ScriptBootstrapActionConfig ) * BootstrapActionConfig { s . ScriptBootstrapAction = v return s }
SetScriptBootstrapAction sets the ScriptBootstrapAction field s value .
201
func ( s * BootstrapActionDetail ) SetBootstrapActionConfig ( v * BootstrapActionConfig ) * BootstrapActionDetail { s . BootstrapActionConfig = v return s }
SetBootstrapActionConfig sets the BootstrapActionConfig field s value .
202
func ( s * CancelStepsOutput ) SetCancelStepsInfoList ( v [ ] * CancelStepsInfo ) * CancelStepsOutput { s . CancelStepsInfoList = v return s }
SetCancelStepsInfoList sets the CancelStepsInfoList field s value .
203
func ( s * Cluster ) SetAutoTerminate ( v bool ) * Cluster { s . AutoTerminate = & v return s }
SetAutoTerminate sets the AutoTerminate field s value .
204
func ( s * Cluster ) SetEc2InstanceAttributes ( v * Ec2InstanceAttributes ) * Cluster { s . Ec2InstanceAttributes = v return s }
SetEc2InstanceAttributes sets the Ec2InstanceAttributes field s value .
205
func ( s * Cluster ) SetInstanceCollectionType ( v string ) * Cluster { s . InstanceCollectionType = & v return s }
SetInstanceCollectionType sets the InstanceCollectionType field s value .
206
func ( s * Cluster ) SetRequestedAmiVersion ( v string ) * Cluster { s . RequestedAmiVersion = & v return s }
SetRequestedAmiVersion sets the RequestedAmiVersion field s value .
207
func ( s * Cluster ) SetRunningAmiVersion ( v string ) * Cluster { s . RunningAmiVersion = & v return s }
SetRunningAmiVersion sets the RunningAmiVersion field s value .
208
func ( s * Command ) SetScriptPath ( v string ) * Command { s . ScriptPath = & v return s }
SetScriptPath sets the ScriptPath field s value .
209
func ( s * DescribeJobFlowsInput ) SetJobFlowStates ( v [ ] * string ) * DescribeJobFlowsInput { s . JobFlowStates = v return s }
SetJobFlowStates sets the JobFlowStates field s value .
210
func ( s * DescribeJobFlowsOutput ) SetJobFlows ( v [ ] * JobFlowDetail ) * DescribeJobFlowsOutput { s . JobFlows = v return s }
SetJobFlows sets the JobFlows field s value .
211
func ( s * EbsBlockDeviceConfig ) SetVolumesPerInstance ( v int64 ) * EbsBlockDeviceConfig { s . VolumesPerInstance = & v return s }
SetVolumesPerInstance sets the VolumesPerInstance field s value .
212
func ( s * EbsConfiguration ) SetEbsBlockDeviceConfigs ( v [ ] * EbsBlockDeviceConfig ) * EbsConfiguration { s . EbsBlockDeviceConfigs = v return s }
SetEbsBlockDeviceConfigs sets the EbsBlockDeviceConfigs field s value .
213
func ( s * Ec2InstanceAttributes ) SetEc2AvailabilityZone ( v string ) * Ec2InstanceAttributes { s . Ec2AvailabilityZone = & v return s }
SetEc2AvailabilityZone sets the Ec2AvailabilityZone field s value .
214
func ( s * Ec2InstanceAttributes ) SetRequestedEc2AvailabilityZones ( v [ ] * string ) * Ec2InstanceAttributes { s . RequestedEc2AvailabilityZones = v return s }
SetRequestedEc2AvailabilityZones sets the RequestedEc2AvailabilityZones field s value .
215
func ( s * Ec2InstanceAttributes ) SetRequestedEc2SubnetIds ( v [ ] * string ) * Ec2InstanceAttributes { s . RequestedEc2SubnetIds = v return s }
SetRequestedEc2SubnetIds sets the RequestedEc2SubnetIds field s value .
216
func ( s * Instance ) SetEbsVolumes ( v [ ] * EbsVolume ) * Instance { s . EbsVolumes = v return s }
SetEbsVolumes sets the EbsVolumes field s value .
217
func ( s * Instance ) SetPublicIpAddress ( v string ) * Instance { s . PublicIpAddress = & v return s }
SetPublicIpAddress sets the PublicIpAddress field s value .
218
func ( s * InstanceFleet ) SetInstanceTypeSpecifications ( v [ ] * InstanceTypeSpecification ) * InstanceFleet { s . InstanceTypeSpecifications = v return s }
SetInstanceTypeSpecifications sets the InstanceTypeSpecifications field s value .
219
func ( s * InstanceFleet ) SetProvisionedOnDemandCapacity ( v int64 ) * InstanceFleet { s . ProvisionedOnDemandCapacity = & v return s }
SetProvisionedOnDemandCapacity sets the ProvisionedOnDemandCapacity field s value .
220
func ( s * InstanceFleet ) SetProvisionedSpotCapacity ( v int64 ) * InstanceFleet { s . ProvisionedSpotCapacity = & v return s }
SetProvisionedSpotCapacity sets the ProvisionedSpotCapacity field s value .
221
func ( s * InstanceFleetConfig ) SetInstanceTypeConfigs ( v [ ] * InstanceTypeConfig ) * InstanceFleetConfig { s . InstanceTypeConfigs = v return s }
SetInstanceTypeConfigs sets the InstanceTypeConfigs field s value .
222
func ( s * InstanceFleetProvisioningSpecifications ) SetSpotSpecification ( v * SpotProvisioningSpecification ) * InstanceFleetProvisioningSpecifications { s . SpotSpecification = v return s }
SetSpotSpecification sets the SpotSpecification field s value .
223
func ( s * InstanceGroup ) SetConfigurationsVersion ( v int64 ) * InstanceGroup { s . ConfigurationsVersion = & v return s }
SetConfigurationsVersion sets the ConfigurationsVersion field s value .
224
func ( s * InstanceGroup ) SetInstanceGroupType ( v string ) * InstanceGroup { s . InstanceGroupType = & v return s }
SetInstanceGroupType sets the InstanceGroupType field s value .
225
func ( s * InstanceGroup ) SetLastSuccessfullyAppliedConfigurations ( v [ ] * Configuration ) * InstanceGroup { s . LastSuccessfullyAppliedConfigurations = v return s }
SetLastSuccessfullyAppliedConfigurations sets the LastSuccessfullyAppliedConfigurations field s value .
226
func ( s * InstanceGroup ) SetLastSuccessfullyAppliedConfigurationsVersion ( v int64 ) * InstanceGroup { s . LastSuccessfullyAppliedConfigurationsVersion = & v return s }
SetLastSuccessfullyAppliedConfigurationsVersion sets the LastSuccessfullyAppliedConfigurationsVersion field s value .
227
func ( s * InstanceGroup ) SetRequestedInstanceCount ( v int64 ) * InstanceGroup { s . RequestedInstanceCount = & v return s }
SetRequestedInstanceCount sets the RequestedInstanceCount field s value .
228
func ( s * InstanceGroup ) SetRunningInstanceCount ( v int64 ) * InstanceGroup { s . RunningInstanceCount = & v return s }
SetRunningInstanceCount sets the RunningInstanceCount field s value .
229
func ( s * InstanceGroupDetail ) SetInstanceRequestCount ( v int64 ) * InstanceGroupDetail { s . InstanceRequestCount = & v return s }
SetInstanceRequestCount sets the InstanceRequestCount field s value .
230
func ( s * InstanceGroupDetail ) SetInstanceRunningCount ( v int64 ) * InstanceGroupDetail { s . InstanceRunningCount = & v return s }
SetInstanceRunningCount sets the InstanceRunningCount field s value .
231
func ( s * InstanceGroupModifyConfig ) SetEC2InstanceIdsToTerminate ( v [ ] * string ) * InstanceGroupModifyConfig { s . EC2InstanceIdsToTerminate = v return s }
SetEC2InstanceIdsToTerminate sets the EC2InstanceIdsToTerminate field s value .
232
func ( s * InstanceResizePolicy ) SetInstanceTerminationTimeout ( v int64 ) * InstanceResizePolicy { s . InstanceTerminationTimeout = & v return s }
SetInstanceTerminationTimeout sets the InstanceTerminationTimeout field s value .
233
func ( s * InstanceResizePolicy ) SetInstancesToProtect ( v [ ] * string ) * InstanceResizePolicy { s . InstancesToProtect = v return s }
SetInstancesToProtect sets the InstancesToProtect field s value .
234
func ( s * InstanceResizePolicy ) SetInstancesToTerminate ( v [ ] * string ) * InstanceResizePolicy { s . InstancesToTerminate = v return s }
SetInstancesToTerminate sets the InstancesToTerminate field s value .
235
func ( s * JobFlowInstancesConfig ) SetEc2SubnetIds ( v [ ] * string ) * JobFlowInstancesConfig { s . Ec2SubnetIds = v return s }
SetEc2SubnetIds sets the Ec2SubnetIds field s value .
236
func ( s * JobFlowInstancesDetail ) SetMasterInstanceId ( v string ) * JobFlowInstancesDetail { s . MasterInstanceId = & v return s }
SetMasterInstanceId sets the MasterInstanceId field s value .
237
func ( s * KerberosAttributes ) SetADDomainJoinPassword ( v string ) * KerberosAttributes { s . ADDomainJoinPassword = & v return s }
SetADDomainJoinPassword sets the ADDomainJoinPassword field s value .
238
func ( s * KerberosAttributes ) SetADDomainJoinUser ( v string ) * KerberosAttributes { s . ADDomainJoinUser = & v return s }
SetADDomainJoinUser sets the ADDomainJoinUser field s value .
239
func ( s * KerberosAttributes ) SetCrossRealmTrustPrincipalPassword ( v string ) * KerberosAttributes { s . CrossRealmTrustPrincipalPassword = & v return s }
SetCrossRealmTrustPrincipalPassword sets the CrossRealmTrustPrincipalPassword field s value .
240
func ( s * KerberosAttributes ) SetKdcAdminPassword ( v string ) * KerberosAttributes { s . KdcAdminPassword = & v return s }
SetKdcAdminPassword sets the KdcAdminPassword field s value .
241
func ( s * KerberosAttributes ) SetRealm ( v string ) * KerberosAttributes { s . Realm = & v return s }
SetRealm sets the Realm field s value .
242
func ( s * ListClustersInput ) SetClusterStates ( v [ ] * string ) * ListClustersInput { s . ClusterStates = v return s }
SetClusterStates sets the ClusterStates field s value .
243
func ( s * ListInstancesInput ) SetInstanceGroupTypes ( v [ ] * string ) * ListInstancesInput { s . InstanceGroupTypes = v return s }
SetInstanceGroupTypes sets the InstanceGroupTypes field s value .
244
func ( s * ListStepsInput ) SetStepStates ( v [ ] * string ) * ListStepsInput { s . StepStates = v return s }
SetStepStates sets the StepStates field s value .
245
func ( s * RunJobFlowInput ) SetNewSupportedProducts ( v [ ] * SupportedProductConfig ) * RunJobFlowInput { s . NewSupportedProducts = v return s }
SetNewSupportedProducts sets the NewSupportedProducts field s value .
246
func ( s * ScalingAction ) SetSimpleScalingPolicyConfiguration ( v * SimpleScalingPolicyConfiguration ) * ScalingAction { s . SimpleScalingPolicyConfiguration = v return s }
SetSimpleScalingPolicyConfiguration sets the SimpleScalingPolicyConfiguration field s value .
247
func ( s * ScalingTrigger ) SetCloudWatchAlarmDefinition ( v * CloudWatchAlarmDefinition ) * ScalingTrigger { s . CloudWatchAlarmDefinition = v return s }
SetCloudWatchAlarmDefinition sets the CloudWatchAlarmDefinition field s value .
248
func ( s * ShrinkPolicy ) SetDecommissionTimeout ( v int64 ) * ShrinkPolicy { s . DecommissionTimeout = & v return s }
SetDecommissionTimeout sets the DecommissionTimeout field s value .
249
func ( s * ShrinkPolicy ) SetInstanceResizePolicy ( v * InstanceResizePolicy ) * ShrinkPolicy { s . InstanceResizePolicy = v return s }
SetInstanceResizePolicy sets the InstanceResizePolicy field s value .
250
func ( s * SimpleScalingPolicyConfiguration ) SetCoolDown ( v int64 ) * SimpleScalingPolicyConfiguration { s . CoolDown = & v return s }
SetCoolDown sets the CoolDown field s value .
251
func ( s * SpotProvisioningSpecification ) SetBlockDurationMinutes ( v int64 ) * SpotProvisioningSpecification { s . BlockDurationMinutes = & v return s }
SetBlockDurationMinutes sets the BlockDurationMinutes field s value .
252
func ( s * SpotProvisioningSpecification ) SetTimeoutDurationMinutes ( v int64 ) * SpotProvisioningSpecification { s . TimeoutDurationMinutes = & v return s }
SetTimeoutDurationMinutes sets the TimeoutDurationMinutes field s value .
253
func ( s * StepConfig ) SetHadoopJarStep ( v * HadoopJarStepConfig ) * StepConfig { s . HadoopJarStep = v return s }
SetHadoopJarStep sets the HadoopJarStep field s value .
254
func ( s * StepDetail ) SetStepConfig ( v * StepConfig ) * StepDetail { s . StepConfig = v return s }
SetStepConfig sets the StepConfig field s value .
255
func ( s * VolumeSpecification ) SetSizeInGB ( v int64 ) * VolumeSpecification { s . SizeInGB = & v return s }
SetSizeInGB sets the SizeInGB field s value .
256
func ( s * Credentials ) SetAccessTokenExpiration ( v time . Time ) * Credentials { s . AccessTokenExpiration = & v return s }
SetAccessTokenExpiration sets the AccessTokenExpiration field s value .
257
func ( s * Credentials ) SetRefreshTokenExpiration ( v time . Time ) * Credentials { s . RefreshTokenExpiration = & v return s }
SetRefreshTokenExpiration sets the RefreshTokenExpiration field s value .
258
func ( s * DescribeUserHierarchyGroupOutput ) SetHierarchyGroup ( v * HierarchyGroup ) * DescribeUserHierarchyGroupOutput { s . HierarchyGroup = v return s }
SetHierarchyGroup sets the HierarchyGroup field s value .
259
func ( s * DescribeUserHierarchyStructureOutput ) SetHierarchyStructure ( v * HierarchyStructure ) * DescribeUserHierarchyStructureOutput { s . HierarchyStructure = v return s }
SetHierarchyStructure sets the HierarchyStructure field s value .
260
func ( s * GetCurrentMetricDataInput ) SetCurrentMetrics ( v [ ] * CurrentMetric ) * GetCurrentMetricDataInput { s . CurrentMetrics = v return s }
SetCurrentMetrics sets the CurrentMetrics field s value .
261
func ( s * GetCurrentMetricDataOutput ) SetDataSnapshotTime ( v time . Time ) * GetCurrentMetricDataOutput { s . DataSnapshotTime = & v return s }
SetDataSnapshotTime sets the DataSnapshotTime field s value .
262
func ( s * GetMetricDataInput ) SetHistoricalMetrics ( v [ ] * HistoricalMetric ) * GetMetricDataInput { s . HistoricalMetrics = v return s }
SetHistoricalMetrics sets the HistoricalMetrics field s value .
263
func ( s * HierarchyGroup ) SetHierarchyPath ( v * HierarchyPath ) * HierarchyGroup { s . HierarchyPath = v return s }
SetHierarchyPath sets the HierarchyPath field s value .
264
func ( s * HierarchyGroup ) SetLevelId ( v string ) * HierarchyGroup { s . LevelId = & v return s }
SetLevelId sets the LevelId field s value .
265
func ( s * ListRoutingProfilesOutput ) SetRoutingProfileSummaryList ( v [ ] * RoutingProfileSummary ) * ListRoutingProfilesOutput { s . RoutingProfileSummaryList = v return s }
SetRoutingProfileSummaryList sets the RoutingProfileSummaryList field s value .
266
func ( s * ListSecurityProfilesOutput ) SetSecurityProfileSummaryList ( v [ ] * SecurityProfileSummary ) * ListSecurityProfilesOutput { s . SecurityProfileSummaryList = v return s }
SetSecurityProfileSummaryList sets the SecurityProfileSummaryList field s value .
267
func ( s * ListUserHierarchyGroupsOutput ) SetUserHierarchyGroupSummaryList ( v [ ] * HierarchyGroupSummary ) * ListUserHierarchyGroupsOutput { s . UserHierarchyGroupSummaryList = v return s }
SetUserHierarchyGroupSummaryList sets the UserHierarchyGroupSummaryList field s value .
268
func ( s * ListUsersOutput ) SetUserSummaryList ( v [ ] * UserSummary ) * ListUsersOutput { s . UserSummaryList = v return s }
SetUserSummaryList sets the UserSummaryList field s value .
269
func ( s * StartOutboundVoiceContactInput ) SetContactFlowId ( v string ) * StartOutboundVoiceContactInput { s . ContactFlowId = & v return s }
SetContactFlowId sets the ContactFlowId field s value .
270
func ( s * StartOutboundVoiceContactInput ) SetQueueId ( v string ) * StartOutboundVoiceContactInput { s . QueueId = & v return s }
SetQueueId sets the QueueId field s value .
271
func ( s * StartOutboundVoiceContactInput ) SetSourcePhoneNumber ( v string ) * StartOutboundVoiceContactInput { s . SourcePhoneNumber = & v return s }
SetSourcePhoneNumber sets the SourcePhoneNumber field s value .
272
func ( s * Threshold ) SetThresholdValue ( v float64 ) * Threshold { s . ThresholdValue = & v return s }
SetThresholdValue sets the ThresholdValue field s value .
273
func ( s * UserPhoneConfig ) SetAfterContactWorkTimeLimit ( v int64 ) * UserPhoneConfig { s . AfterContactWorkTimeLimit = & v return s }
SetAfterContactWorkTimeLimit sets the AfterContactWorkTimeLimit field s value .
274
func ( s * UserPhoneConfig ) SetAutoAccept ( v bool ) * UserPhoneConfig { s . AutoAccept = & v return s }
SetAutoAccept sets the AutoAccept field s value .
275
func ( s * UserPhoneConfig ) SetDeskPhoneNumber ( v string ) * UserPhoneConfig { s . DeskPhoneNumber = & v return s }
SetDeskPhoneNumber sets the DeskPhoneNumber field s value .
276
func StringSlice ( src [ ] string ) [ ] * string { dst := make ( [ ] * string , len ( src ) ) for i := 0 ; i < len ( src ) ; i ++ { dst [ i ] = & ( src [ i ] ) } return dst }
StringSlice converts a slice of string values into a slice of string pointers
277
func StringValueSlice ( src [ ] * string ) [ ] string { dst := make ( [ ] string , len ( src ) ) for i := 0 ; i < len ( src ) ; i ++ { if src [ i ] != nil { dst [ i ] = * ( src [ i ] ) } } return dst }
StringValueSlice converts a slice of string pointers into a slice of string values
278
func StringMap ( src map [ string ] string ) map [ string ] * string { dst := make ( map [ string ] * string ) for k , val := range src { v := val dst [ k ] = & v } return dst }
StringMap converts a string map of string values into a string map of string pointers
279
func StringValueMap ( src map [ string ] * string ) map [ string ] string { dst := make ( map [ string ] string ) for k , val := range src { if val != nil { dst [ k ] = * val } } return dst }
StringValueMap converts a string map of string pointers into a string map of string values
280
func BoolSlice ( src [ ] bool ) [ ] * bool { dst := make ( [ ] * bool , len ( src ) ) for i := 0 ; i < len ( src ) ; i ++ { dst [ i ] = & ( src [ i ] ) } return dst }
BoolSlice converts a slice of bool values into a slice of bool pointers
281
func BoolValueSlice ( src [ ] * bool ) [ ] bool { dst := make ( [ ] bool , len ( src ) ) for i := 0 ; i < len ( src ) ; i ++ { if src [ i ] != nil { dst [ i ] = * ( src [ i ] ) } } return dst }
BoolValueSlice converts a slice of bool pointers into a slice of bool values
282
func BoolMap ( src map [ string ] bool ) map [ string ] * bool { dst := make ( map [ string ] * bool ) for k , val := range src { v := val dst [ k ] = & v } return dst }
BoolMap converts a string map of bool values into a string map of bool pointers
283
func BoolValueMap ( src map [ string ] * bool ) map [ string ] bool { dst := make ( map [ string ] bool ) for k , val := range src { if val != nil { dst [ k ] = * val } } return dst }
BoolValueMap converts a string map of bool pointers into a string map of bool values
284
func IntSlice ( src [ ] int ) [ ] * int { dst := make ( [ ] * int , len ( src ) ) for i := 0 ; i < len ( src ) ; i ++ { dst [ i ] = & ( src [ i ] ) } return dst }
IntSlice converts a slice of int values into a slice of int pointers
285
func IntValueSlice ( src [ ] * int ) [ ] int { dst := make ( [ ] int , len ( src ) ) for i := 0 ; i < len ( src ) ; i ++ { if src [ i ] != nil { dst [ i ] = * ( src [ i ] ) } } return dst }
IntValueSlice converts a slice of int pointers into a slice of int values
286
func IntMap ( src map [ string ] int ) map [ string ] * int { dst := make ( map [ string ] * int ) for k , val := range src { v := val dst [ k ] = & v } return dst }
IntMap converts a string map of int values into a string map of int pointers
287
func IntValueMap ( src map [ string ] * int ) map [ string ] int { dst := make ( map [ string ] int ) for k , val := range src { if val != nil { dst [ k ] = * val } } return dst }
IntValueMap converts a string map of int pointers into a string map of int values
288
func Int64Slice ( src [ ] int64 ) [ ] * int64 { dst := make ( [ ] * int64 , len ( src ) ) for i := 0 ; i < len ( src ) ; i ++ { dst [ i ] = & ( src [ i ] ) } return dst }
Int64Slice converts a slice of int64 values into a slice of int64 pointers
289
func Int64ValueSlice ( src [ ] * int64 ) [ ] int64 { dst := make ( [ ] int64 , len ( src ) ) for i := 0 ; i < len ( src ) ; i ++ { if src [ i ] != nil { dst [ i ] = * ( src [ i ] ) } } return dst }
Int64ValueSlice converts a slice of int64 pointers into a slice of int64 values
290
func Int64Map ( src map [ string ] int64 ) map [ string ] * int64 { dst := make ( map [ string ] * int64 ) for k , val := range src { v := val dst [ k ] = & v } return dst }
Int64Map converts a string map of int64 values into a string map of int64 pointers
291
func Int64ValueMap ( src map [ string ] * int64 ) map [ string ] int64 { dst := make ( map [ string ] int64 ) for k , val := range src { if val != nil { dst [ k ] = * val } } return dst }
Int64ValueMap converts a string map of int64 pointers into a string map of int64 values
292
func Float64Slice ( src [ ] float64 ) [ ] * float64 { dst := make ( [ ] * float64 , len ( src ) ) for i := 0 ; i < len ( src ) ; i ++ { dst [ i ] = & ( src [ i ] ) } return dst }
Float64Slice converts a slice of float64 values into a slice of float64 pointers
293
func Float64ValueSlice ( src [ ] * float64 ) [ ] float64 { dst := make ( [ ] float64 , len ( src ) ) for i := 0 ; i < len ( src ) ; i ++ { if src [ i ] != nil { dst [ i ] = * ( src [ i ] ) } } return dst }
Float64ValueSlice converts a slice of float64 pointers into a slice of float64 values
294
func Float64Map ( src map [ string ] float64 ) map [ string ] * float64 { dst := make ( map [ string ] * float64 ) for k , val := range src { v := val dst [ k ] = & v } return dst }
Float64Map converts a string map of float64 values into a string map of float64 pointers
295
func Float64ValueMap ( src map [ string ] * float64 ) map [ string ] float64 { dst := make ( map [ string ] float64 ) for k , val := range src { if val != nil { dst [ k ] = * val } } return dst }
Float64ValueMap converts a string map of float64 pointers into a string map of float64 values
296
func TimeSlice ( src [ ] time . Time ) [ ] * time . Time { dst := make ( [ ] * time . Time , len ( src ) ) for i := 0 ; i < len ( src ) ; i ++ { dst [ i ] = & ( src [ i ] ) } return dst }
TimeSlice converts a slice of time . Time values into a slice of time . Time pointers
297
func TimeValueSlice ( src [ ] * time . Time ) [ ] time . Time { dst := make ( [ ] time . Time , len ( src ) ) for i := 0 ; i < len ( src ) ; i ++ { if src [ i ] != nil { dst [ i ] = * ( src [ i ] ) } } return dst }
TimeValueSlice converts a slice of time . Time pointers into a slice of time . Time values
298
func TimeMap ( src map [ string ] time . Time ) map [ string ] * time . Time { dst := make ( map [ string ] * time . Time ) for k , val := range src { v := val dst [ k ] = & v } return dst }
TimeMap converts a string map of time . Time values into a string map of time . Time pointers
299
func TimeValueMap ( src map [ string ] * time . Time ) map [ string ] time . Time { dst := make ( map [ string ] time . Time ) for k , val := range src { if val != nil { dst [ k ] = * val } } return dst }
TimeValueMap converts a string map of time . Time pointers into a string map of time . Time values