anchor dict | positive dict | negative dict |
|---|---|---|
{
"audio": "",
"image": "",
"text": "func (s *TrustedAdvisorCheckSummary) SetHasFlaggedResources(v bool) *TrustedAdvisorCheckSummary",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\ts.HasFlaggedResources = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tMap(int64To16).\n\t\tWithShrinker(Int16Shrinker).\n\t\tSuchThat(func(v int16) bool {\n\t\t\treturn v >= min && v <= max\n\t\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *TrustedAdvisorCostOptimizingSummary) SetEstimatedMonthlySavings(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " float64) *TrustedAdvisorCostOptimizingSummary {\n\ts.EstimatedMonthlySavings = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *TrustedAdvisorCostOptimizingSummary) SetEstimatedPercentMonthlySavings(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " float64) *TrustedAdvisorCostOptimizingSummary {\n\ts.EstimatedPercentMonthlySavings = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *TrustedAdvisorResourceDetail) SetIsSuppressed(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " bool) *TrustedAdvisorResourceDetail {\n\ts.IsSuppressed = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *TrustedAdvisorResourcesSummary) SetResourcesFlagged(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " int64) *TrustedAdvisorResourcesSummary {\n\ts.ResourcesFlagged = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *TrustedAdvisorResourcesSummary) SetResourcesIgnored(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " int64) *TrustedAdvisorResourcesSummary {\n\ts.ResourcesIgnored = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *TrustedAdvisorResourcesSummary) SetResourcesProcessed(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " int64) *TrustedAdvisorResourcesSummary {\n\ts.ResourcesProcessed = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *TrustedAdvisorResourcesSummary) SetResourcesSuppressed(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " int64) *TrustedAdvisorResourcesSummary {\n\ts.ResourcesSuppressed = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func GoFmt(buf string) string {\n\tformatted, err := format.Source([]byte(buf))\n\tif err != nil {\n\t\tpanic(fmt.Errorf(\"%s\\nOriginal",
"video": ""
} | {
"audio": "",
"image": "",
"text": " code:\\n%s\", err.Error(), buf))\n\t}\n\treturn string(formatted)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " evRight, evLeft, evDel:\n\t\t\tcontinue\n\t\tcase evReturn:\n\t\t\terr = buf.EndLine()\n\t\t\treturn buf.String(), err\n\t\tcase evEOF:\n\t\t\terr = buf.EndLine()\n\t\t\tif err == nil {\n\t\t\t\terr = ErrEOF\n\t\t\t}\n\n\t\t\treturn buf.String(), err\n\t\tcase evCtrlC:\n\t\t\... |
{
"audio": "",
"image": "",
"text": "func Capitalize(s string) string {\n\tif len(s) == 1",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\t\treturn strings.ToUpper(s)\n\t}\n\treturn strings.ToUpper(s[0:1]) + s[1:]\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\t\tdelete(s.members, string(key))\n\t\t} else {\n\t\t\ts.members[string(key)] = n - 1\n\t\t}\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func SortXML(r io.Reader) string {\n\tvar buf bytes.Buffer\n\td := xml.NewDecoder(r)\n\troot,",
"video": ""
} | {
"audio": "",
"image": "",
"text": " _ := xmlutil.XMLToStruct(d, nil)\n\te := xml.NewEncoder(&buf)\n\txmlutil.StructToXML(e, root, true)\n\treturn buf.String()\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t}()\n\tvar buf bytes.Buffer\n\tif _, err := io.CopyN(&buf, rs, 1e6); err != nil {\n\t\tif err != io.EOF {\n\t\t\treturn false, err\n\t\t}\n\t}\n\treturn utf8.Valid(buf.Bytes()), nil\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func PrettyPrint(v interface{}) string {\n\tvalue := reflect.ValueOf(v)\n\tswitch value.Kind() {\n\tcase reflect.Struct:\n\t\tstr := fullName(value.Type()) + \"{\\n\"\n\t\tfor i := 0; i < value.NumField(); i++ {\n\t\t\tl := string(value.Type().Field(i).Name[0])\n\t\t\tif strin... | {
"audio": "",
"image": "",
"text": " \"map[\" + fullName(value.Type().Key()) + \"]\" + fullName(value.Type().Elem()) + \"{\\n\"\n\t\tfor _, k := range value.MapKeys() {\n\t\t\tstr += \"\\\"\" + k.String() + \"\\\": \"\n\t\t\tstr += PrettyPrint(value.MapIndex(k).Interface())\n\t\t\tstr += \",\\n\"\n\t\t}\n\t\tstr... | {
"audio": "",
"image": "",
"text": " a pointer to the value.\n\t\trv2 := reflect.New(rv.Type())\n\t\trv2.Elem().Set(rv)\n\t\tv = rv2.Interface()\n\tcase reflect.Ptr:\n\t\t// Represent slice types as the value itself.\n\t\tswitch rv.Type().Elem().Kind() {\n\t\tcase reflect.Slice:\n\t\t\tif rv.IsNil() {\n\t\t\t\tv... |
{
"audio": "",
"image": "",
"text": "func (s *DeleteSecretInput) SetForceDeleteWithoutRecovery(v bool) *DeleteSecretInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.ForceDeleteWithoutRecovery = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tMap(int64ToInt).\n\t\tWithShrinker(IntShrinker).\n\t\tSuchThat(func(v int) bool {\n\t\t\treturn v >= min && v <= max\n\t\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *DeleteSecretInput) SetRecoveryWindowInDays(v int64) *DeleteSecretInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.RecoveryWindowInDays = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " v.Int64 != 0 {\n\t\tenc.Int64(v.Int64)\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *DescribeSecretOutput) SetVersionIdsToStages(v map[string][]*string)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *DescribeSecretOutput {\n\ts.VersionIdsToStages = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *GetRandomPasswordInput) SetExcludeCharacters(v string) *GetRandomPasswordInput",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\ts.ExcludeCharacters = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " bool) *GetRandomPasswordInput {\n\ts.ExcludePunctuation = &v\n\treturn s\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *GetRandomPasswordInput) SetExcludeLowercase(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " bool) *GetRandomPasswordInput {\n\ts.ExcludeLowercase = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " bool) *GetRandomPasswordInput {\n\ts.ExcludePunctuation = &v\n\treturn s\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *GetRandomPasswordInput) SetExcludeNumbers(v bool) *GetRandomPasswordInput",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\ts.ExcludeNumbers = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " bool) *GetRandomPasswordInput {\n\ts.ExcludePunctuation = &v\n\treturn s\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *GetRandomPasswordInput) SetExcludePunctuation(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " bool) *GetRandomPasswordInput {\n\ts.ExcludePunctuation = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " bool) *GetRandomPasswordInput {\n\ts.ExcludeLowercase = &v\n\treturn s\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *GetRandomPasswordInput) SetExcludeUppercase(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " bool) *GetRandomPasswordInput {\n\ts.ExcludeUppercase = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " bool) *GetRandomPasswordInput {\n\ts.ExcludePunctuation = &v\n\treturn s\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *GetRandomPasswordInput) SetIncludeSpace(v bool) *GetRandomPasswordInput",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\ts.IncludeSpace = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " bool) *GetRandomPasswordInput {\n\ts.ExcludePunctuation = &v\n\treturn s\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *GetRandomPasswordInput) SetPasswordLength(v int64) *GetRandomPasswordInput",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\ts.PasswordLength = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " bool) *GetRandomPasswordInput {\n\ts.ExcludePunctuation = &v\n\treturn s\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *GetRandomPasswordInput) SetRequireEachIncludedType(v bool) *GetRandomPasswordInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.RequireEachIncludedType = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " bool) *GetRandomPasswordInput {\n\ts.ExcludeLowercase = &v\n\treturn s\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *GetRandomPasswordOutput) SetRandomPassword(v string) *GetRandomPasswordOutput",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\ts.RandomPassword = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *ListSecretVersionIdsInput) SetIncludeDeprecated(v bool) *ListSecretVersionIdsInput",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\ts.IncludeDeprecated = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tMap(int64To16).\n\t\tWithShrinker(Int16Shrinker).\n\t\tSuchThat(func(v int16) bool {\n\t\t\treturn v >= min && v <= max\n\t\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *ListSecretsOutput) SetSecretList(v []*SecretListEntry)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *ListSecretsOutput {\n\ts.SecretList = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *RotationRulesType) SetAutomaticallyAfterDays(v int64) *RotationRulesType {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.AutomaticallyAfterDays = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " v.Int64 != 0 {\n\t\tenc.Int64(v.Int64)\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *SecretListEntry) SetSecretVersionsToStages(v map[string][]*string)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *SecretListEntry {\n\ts.SecretVersionsToStages = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *UpdateSecretVersionStageInput) SetMoveToVersionId(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " string) *UpdateSecretVersionStageInput {\n\ts.MoveToVersionId = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *UpdateSecretVersionStageInput) SetRemoveFromVersionId(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " string) *UpdateSecretVersionStageInput {\n\ts.RemoveFromVersionId = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *AuthorizationData) SetAuthorizationToken(v string) *AuthorizationData {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.AuthorizationToken = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *AuthorizationData) SetProxyEndpoint(v string) *AuthorizationData {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.ProxyEndpoint = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *BatchGetImageInput) SetAcceptedMediaTypes(v []*string) *BatchGetImageInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.AcceptedMediaTypes = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DescribeImagesOutput) SetImageDetails(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " []*ImageDetail) *DescribeImagesOutput {\n\ts.ImageDetails = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *GetAuthorizationTokenInput) SetRegistryIds(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " []*string) *GetAuthorizationTokenInput {\n\ts.RegistryIds = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *GetAuthorizationTokenOutput) SetAuthorizationData(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " []*AuthorizationData) *GetAuthorizationTokenOutput {\n\ts.AuthorizationData = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *GetLifecyclePolicyPreviewOutput) SetPreviewResults(v []*LifecyclePolicyPreviewResult)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *GetLifecyclePolicyPreviewOutput {\n\ts.PreviewResults = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *ImageDetail) SetImageSizeInBytes(v int64) *ImageDetail {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.ImageSizeInBytes = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " v.Int64 != 0 {\n\t\tenc.Int64(v.Int64)\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *Layer) SetLayerAvailability(v string) *Layer {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.LayerAvailability = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *Layer) SetLayerSize(v int64) *Layer {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.LayerSize = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " v.Int64 != 0 {\n\t\tenc.Int64(v.Int64)\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *LifecyclePolicyPreviewResult) SetAppliedRulePriority(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " int64) *LifecyclePolicyPreviewResult {\n\ts.AppliedRulePriority = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *LifecyclePolicyPreviewSummary) SetExpiringImageTotalCount(v int64) *LifecyclePolicyPreviewSummary",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\ts.ExpiringImageTotalCount = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " v.Int64 != 0 {\n\t\tenc.Int64(v.Int64)\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *Repository) SetRepositoryArn(v string) *Repository {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.RepositoryArn = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *Repository) SetRepositoryUri(v string) *Repository {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.RepositoryUri = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *UploadLayerPartInput) SetLayerPartBlob(v []byte) *UploadLayerPartInput",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\ts.LayerPartBlob = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tv.Set([]byte(key), chrs[0:0])\n\t} else {\n\t\tv.Set([]byte(key), []byte(val))\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *UploadLayerPartInput) SetPartFirstByte(v int64) *UploadLayerPartInput",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\ts.PartFirstByte = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " v.Int64 != 0 {\n\t\tenc.Int64(v.Int64)\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *UploadLayerPartInput) SetPartLastByte(v int64) *UploadLayerPartInput",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\ts.PartLastByte = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " v.Int64 != 0 {\n\t\tenc.Int64(v.Int64)\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *UploadLayerPartOutput) SetLastByteReceived(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " int64) *UploadLayerPartOutput {\n\ts.LastByteReceived = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func UnmarshalXML(v interface{}, d *xml.Decoder, wrapper string) error {\n\tn, err := XMLToStruct(d, nil)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif n.Children != nil {\n\t\tfor _, root := range n.Children {\n\t\t\tfor _, c := range root {\n\t\t\t\tif wrappedChild, ok := c.... | {
"audio": "",
"image": "",
"text": "\n\t\t\t\terr = parse(reflect.ValueOf(v), c, \"\")\n\t\t\t\tif err != nil {\n\t\t\t\t\tif err == io.EOF {\n\t\t\t\t\t\treturn nil\n\t\t\t\t\t}\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn nil\n\t}\n\treturn nil\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " := SetPresubmitRegexes(vs); err != nil {\n\t\t\treturn fmt.Errorf(\"could not set regex: %v\", err)\n\t\t}\n\t}\n\tfor _, js := range c.Postsubmits {\n\t\tc.defaultPostsubmitFields(js)\n\t\tif err := SetPostsubmitRegexes(js); err != nil {\n\t\t\treturn fmt.Errorf(\"could not ... |
{
"audio": "",
"image": "",
"text": "func parse(r reflect.Value, node *XMLNode, tag reflect.StructTag) error {\n\trtype := r.Type()\n\tif rtype.Kind() == reflect.Ptr {\n\t\trtype = rtype.Elem() // check kind of actual element type\n\t}\n\n\tt := tag.Get(\"type\")\n\tif t == \"\" {\n\t\tswitch rtype.Kind() {\n\t\t... | {
"audio": "",
"image": "",
"text": "\t\t\tt = \"structure\"\n\t\t\t}\n\t\tcase reflect.Slice:\n\t\t\t// also it can't be a byte slice\n\t\t\tif _, ok := r.Interface().([]byte); !ok {\n\t\t\t\tt = \"list\"\n\t\t\t}\n\t\tcase reflect.Map:\n\t\t\tt = \"map\"\n\t\t}\n\t}\n\n\tswitch t {\n\tcase \"structure\":\n\t\ti... | {
"audio": "",
"image": "",
"text": " rtype.Kind() == reflect.Ptr {\n\t\trtype = rtype.Elem()\n\t}\n\tbuffer.AppendString(rtype.String())\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func parseStruct(r reflect.Value, node *XMLNode, tag reflect.StructTag) error {\n\tt := r.Type()\n\tif r.Kind() == reflect.Ptr {\n\t\tif r.IsNil() { // create the structure if it's nil\n\t\t\ts := reflect.New(r.Type().Elem())\n\t\t\tr.Set(s)\n\t\t\tr = s\n\t\t}\n\n\t\tr = r.El... | {
"audio": "",
"image": "",
"text": "\n\t\t// try to find the field by name in elements\n\t\telems := node.Children[name]\n\n\t\tif elems == nil { // try to find the field in attributes\n\t\t\tif val, ok := node.findElem(name); ok {\n\t\t\t\telems = []*XMLNode{{Text: val}}\n\t\t\t}\n\t\t}\n\n\t\tmember := r.Field... | {
"audio": "",
"image": "",
"text": " tag values (this will also validate the field key, which is a tag value for the special field key tag key).\n\t\tif !ValidToken(tag.Value) {\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func parseList(r reflect.Value, node *XMLNode, tag reflect.StructTag) error {\n\tt := r.Type()\n\n\tif tag.Get(\"flattened\") == \"\" { // look at all item entries\n\t\tmname := \"member\"\n\t\tif name := tag.Get(\"locationNameList\"); name != \"\" {\n\t\t\tmname = name\n\t\t}... | {
"audio": "",
"image": "",
"text": "\tr.Set(reflect.MakeSlice(t, len(Children), len(Children)))\n\t\t\t}\n\n\t\t\tfor i, c := range Children {\n\t\t\t\terr := parse(r.Index(i), c, \"\")\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn err\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t} else { // flattened list means this is a single ... | {
"audio": "",
"image": "",
"text": " u.Get(\"email\")\n\tif ok {\n\t\treturn r.(string)\n\t}\n\n\treturn \"\"\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func parseMap(r reflect.Value, node *XMLNode, tag reflect.StructTag) error {\n\tif r.IsNil() {\n\t\tr.Set(reflect.MakeMap(r.Type()))\n\t}\n\n\tif tag.Get(\"flattened\") == \"\" { // look at all child entries\n\t\tfor _, entry := range node.Children[\"entry\"] {",
"video": ""... | {
"audio": "",
"image": "",
"text": "\n\t\t\tparseMapEntry(r, entry, tag)\n\t\t}\n\t} else { // this element is itself an entry\n\t\tparseMapEntry(r, node, tag)\n\t}\n\n\treturn nil\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " += s\n\t\t\t}\n\t\t\treturn sum\n\t\t}\n\n\tcase reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64,\n\t\treflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64,\n\t\treflect.Float32, reflect.Float64, reflect.Complex64, reflect.Complex128:\n\t\treturn int(t.Size... |
{
"audio": "",
"image": "",
"text": "func parseMapEntry(r reflect.Value, node *XMLNode, tag reflect.StructTag) error {\n\tkname, vname := \"key\", \"value\"\n\tif n := tag.Get(\"locationNameKey\"); n != \"\" {\n\t\tkname = n\n\t}\n\tif n := tag.Get(\"locationNameValue\"); n != \"\" {\n\t\tvname = n\n\t}\n\n\tkeys... | {
"audio": "",
"image": "",
"text": "\t\tkeyR := reflect.ValueOf(key.Text)\n\t\t\tvalue := values[i]\n\t\t\tvalueR := reflect.New(r.Type().Elem()).Elem()\n\n\t\t\tparse(valueR, value, \"\")\n\t\t\tr.SetMapIndex(keyR, valueR)\n\t\t}\n\t}\n\treturn nil\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " := strconv.Atoi(node.Values.Get(key))\n\treturn n\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func parseScalar(r reflect.Value, node *XMLNode, tag reflect.StructTag) error {\n\tswitch r.Interface().(type) {\n\tcase *string:\n\t\tr.Set(reflect.ValueOf(&node.Text))\n\t\treturn nil\n\tcase []byte:\n\t\tb, err := base64.StdEncoding.DecodeString(node.Text)\n\t\tif err != ni... | {
"audio": "",
"image": "",
"text": "\t\tv, err := strconv.ParseInt(node.Text, 10, 64)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tr.Set(reflect.ValueOf(&v))\n\tcase *float64:\n\t\tv, err := strconv.ParseFloat(node.Text, 64)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tr.Set(reflect.ValueOf(&v))\n\tc... | {
"audio": "",
"image": "",
"text": " += s\n\t\t\t}\n\t\t\treturn sum\n\t\t}\n\n\tcase reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64,\n\t\treflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64,\n\t\treflect.Float32, reflect.Float64, reflect.Complex64, reflect.Complex128:\n\t\treturn int(t.Size... |
{
"audio": "",
"image": "",
"text": "func (h *Handlers) Copy() Handlers {\n\treturn Handlers{\n\t\tValidate: h.Validate.copy(),\n\t\tBuild: h.Build.copy(),\n\t\tSign: h.Sign.copy(),\n\t\tSend: h.Send.copy(),\n\t\tValidateResponse: h.ValidateResponse.copy(),\n\t\tUnmarsha... | {
"audio": "",
"image": "",
"text": "\tUnmarshalError: h.UnmarshalError.copy(),\n\t\tUnmarshalMeta: h.UnmarshalMeta.copy(),\n\t\tRetry: h.Retry.copy(),\n\t\tAfterRetry: h.AfterRetry.copy(),\n\t\tCompleteAttempt: h.CompleteAttempt.copy(),\n\t\tComplete: h.Complete.copy(),\n\t}\n}",
... | {
"audio": "",
"image": "",
"text": " Size}\n\tcopy(h.key[:], key)\n\th.Reset()\n\treturn h, nil\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (h *Handlers) Clear() {\n\th.Validate.Clear()\n\th.Build.Clear()\n\th.Send.Clear()\n\th.Sign.Clear()\n\th.Unmarshal.Clear()\n\th.UnmarshalStream.Clear()\n\th.UnmarshalMeta.Clear()\n\th.UnmarshalError.Clear()",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\th.ValidateResponse.Clear()\n\th.Retry.Clear()\n\th.AfterRetry.Clear()\n\th.CompleteAttempt.Clear()\n\th.Complete.Clear()\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\th.Enabled, h.LocalAddr, h.RemoteAddr, h.Priority, h.VRID)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (l *HandlerList) copy() HandlerList {\n\tn := HandlerList{\n\t\tAfterEachFn: l.AfterEachFn,\n\t}\n\tif len(l.list) == 0 {\n\t\treturn n\n\t}\n\n\tn.list =",
"video": ""
} | {
"audio": "",
"image": "",
"text": " append(make([]NamedHandler, 0, len(l.list)), l.list...)\n\treturn n\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " || n >= list.length {\n\t\treturn emptySlice()\n\t}\n\treturn list.Slice(0, n-1)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (l *HandlerList) PushBackNamed(n NamedHandler) {\n\tif cap(l.list)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " == 0 {\n\t\tl.list = make([]NamedHandler, 0, 5)\n\t}\n\tl.list = append(l.list, n)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " v := range l {\n\t\tlist[i] = v\n\t}\n\treturn list\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (l *HandlerList) PushFrontNamed(n NamedHandler) {\n\tif cap(l.list) == len(l.list) {\n\t\t// Allocating new list required\n\t\tl.list",
"video": ""
} | {
"audio": "",
"image": "",
"text": " = append([]NamedHandler{n}, l.list...)\n\t} else {\n\t\t// Enough room to prepend into list.\n\t\tl.list = append(l.list, NamedHandler{})\n\t\tcopy(l.list[1:], l.list)\n\t\tl.list[0] = n\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " v := range l {\n\t\tlist[i] = v\n\t}\n\treturn list\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (l *HandlerList) RemoveByName(name string) {\n\tfor i := 0; i < len(l.list); i++ {\n\t\tm := l.list[i]\n\t\tif m.Name == name {\n\t\t\t// Shift array preventing",
"video": ""
} | {
"audio": "",
"image": "",
"text": " creating new arrays\n\t\t\tcopy(l.list[i:], l.list[i+1:])\n\t\t\tl.list[len(l.list)-1] = NamedHandler{}\n\t\t\tl.list = l.list[:len(l.list)-1]\n\n\t\t\t// decrement list so next check to length is correct\n\t\t\ti--\n\t\t}\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " name := range md.paramNames {\n\t\tif i < l {\n\t\t\tparams[name] = mi.paramValues[i]\n\t\t}\n\t}\n\n\treturn md.decs, params\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (l *HandlerList) SwapNamed(n NamedHandler) (swapped bool) {\n\tfor i := 0; i < len(l.list); i++ {\n\t\tif l.list[i].Name ==",
"video": ""
} | {
"audio": "",
"image": "",
"text": " n.Name {\n\t\t\tl.list[i].Fn = n.Fn\n\t\t\tswapped = true\n\t\t}\n\t}\n\n\treturn swapped\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\tif i := bytes.IndexByte(l.data[l.pos:], c); i == -1 {\n\t\t// Reached the end of data.\n\t\tl.pos = len(l.data)\n\t} else {\n\t\tl.pos += i + 1\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (l *HandlerList) Swap(name string, replace NamedHandler) bool {\n\tvar swapped bool\n\n\tfor",
"video": ""
} | {
"audio": "",
"image": "",
"text": " i := 0; i < len(l.list); i++ {\n\t\tif l.list[i].Name == name {\n\t\t\tl.list[i] = replace\n\t\t\tswapped = true\n\t\t}\n\t}\n\n\treturn swapped\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " bool {\n\treturn func(err error) bool {\n\t\treturn Cause(err) == cause\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (l *HandlerList) SetBackNamed(n NamedHandler)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\tif !l.SwapNamed(n) {\n\t\tl.PushBackNamed(n)\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " make(chan struct{}),\n\t\tleadershipBroadcast: watch.NewQueue(),\n\t\tkeyRotator: opts.KeyRotator,\n\t}\n\tn.memoryStore = store.NewMemoryStore(n)\n\n\tif opts.ClockSource == nil {\n\t\tn.ticker = clock.NewClock().NewTicker(opts.TickInterval)\n\t} else {\n\t\tn.ticke... |
{
"audio": "",
"image": "",
"text": "func (l *HandlerList) SetFrontNamed(n NamedHandler)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\tif !l.SwapNamed(n) {\n\t\tl.PushFrontNamed(n)\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " make(chan struct{}),\n\t\tleadershipBroadcast: watch.NewQueue(),\n\t\tkeyRotator: opts.KeyRotator,\n\t}\n\tn.memoryStore = store.NewMemoryStore(n)\n\n\tif opts.ClockSource == nil {\n\t\tn.ticker = clock.NewClock().NewTicker(opts.TickInterval)\n\t} else {\n\t\tn.ticke... |
{
"audio": "",
"image": "",
"text": "func (l *HandlerList) Run(r *Request) {\n\tfor i, h := range l.list {\n\t\th.Fn(r)\n\t\titem := HandlerListRunItem{",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\t\tIndex: i, Handler: h, Request: r,\n\t\t}\n\t\tif l.AfterEachFn != nil && !l.AfterEachFn(item) {\n\t\t\treturn\n\t\t}\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " r.Headers == nil {\n\t\t\t\tr.Headers = &AttributeDefinition{Type: Object{}}\n\t\t\t}\n\t\t\theaders := r.Headers.Type.ToObject()\n\t\t\tfor n, h := range otherHeaders {\n\t\t\t\tif _, ok := headers[n]; !ok {\n\t\t\t\t\theaders[n] = h\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}",
"v... |
{
"audio": "",
"image": "",
"text": "func HandlerListLogItem(item HandlerListRunItem) bool {\n\tif item.Request.Config.Logger == nil {",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\treturn true\n\t}\n\titem.Request.Config.Logger.Log(\"DEBUG: RequestHandler\",\n\t\titem.Index, item.Handler.Name, item.Request.Error)\n\n\treturn true\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tif item.ID == id {\n\t\t\treturn item\n\t\t}\n\t}\n\n\treturn nil\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func WithAppendUserAgent(s string) Option {\n\treturn func(r *Request) {\n\t\tr.Handlers.Build.PushBack(func(r2",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Request) {\n\t\t\tAddToUserAgent(r, s)\n\t\t})\n\t}\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " Option {\n\treturn func(c *Config) {\n\t\tc.Daemon.DriverCfg[networkType] = config\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func BuildXML(params interface{}, e *xml.Encoder) error {\n\treturn",
"video": ""
} | {
"audio": "",
"image": "",
"text": " buildXML(params, e, false)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " (interface{}, error)) *Init {\n\treturn ini.Branch(func() (interface{}, error) {\n\t\treturn ini.withTimeout(timeout, f)\n\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func elemOf(value reflect.Value) reflect.Value {\n\tfor value.Kind() == reflect.Ptr {",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tvalue = value.Elem()\n\t}\n\treturn value\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\t}\n\t\t}\n\n\t\tif v.CanSet() {\n\t\t\tswitch idField := found[len(found)-1].(type) {\n\t\t\tcase reflect.Value:\n\t\t\t\tif idField.Kind() == reflect.Int64 {\n\t\t\t\t\tb.RecordID = idField.Addr().Interface().(*int64)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tb.Values(value...)\n\t... |
{
"audio": "",
"image": "",
"text": "func (b *xmlBuilder) buildValue(value reflect.Value, current *XMLNode, tag reflect.StructTag) error {\n\tvalue = elemOf(value)\n\tif !value.IsValid() { // no need to handle zero values\n\t\treturn nil\n\t} else if tag.Get(\"location\") != \"\" { // don't handle non-body locati... | {
"audio": "",
"image": "",
"text": "\n\t}\n\n\tswitch t {\n\tcase \"structure\":\n\t\tif field, ok := value.Type().FieldByName(\"_\"); ok {\n\t\t\ttag = tag + reflect.StructTag(\" \") + field.Tag\n\t\t}\n\t\treturn b.buildStruct(value, current, tag)\n\tcase \"list\":\n\t\treturn b.buildList(value, current, tag)\... | {
"audio": "",
"image": "",
"text": " += s\n\t\t\t}\n\t\t\treturn sum\n\t\t}\n\n\tcase reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64,\n\t\treflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64,\n\t\treflect.Float32, reflect.Float64, reflect.Complex64, reflect.Complex128:\n\t\treturn int(t.Size... |
{
"audio": "",
"image": "",
"text": "func (b *xmlBuilder) buildStruct(value reflect.Value, current *XMLNode, tag reflect.StructTag) error {\n\tif !value.IsValid() {\n\t\treturn nil\n\t}\n\n\t// unwrap payloads\n\tif payload := tag.Get(\"payload\"); payload != \"\" {\n\t\tfield, _ := value.Type().FieldByName(paylo... | {
"audio": "",
"image": "",
"text": "\t\tcontinue\n\t\t}\n\n\t\tmTag := field.Tag\n\t\tif mTag.Get(\"location\") != \"\" { // skip non-body members\n\t\t\tnonPayloadFields++\n\t\t\tcontinue\n\t\t}\n\t\tpayloadFields++\n\n\t\tif protocol.CanSetIdempotencyToken(value.Field(i), field) {\n\t\t\ttoken := protocol.GetI... | {
"audio": "",
"image": "",
"text": " tag values (this will also validate the field key, which is a tag value for the special field key tag key).\n\t\tif !ValidToken(tag.Value) {\n\t\t\treturn false\n\t\t}\n\t}\n\treturn true\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (b *xmlBuilder) buildList(value reflect.Value, current *XMLNode, tag reflect.StructTag) error {\n\tif value.IsNil() { // don't build omitted lists\n\t\treturn nil\n\t}\n\n\t// check for unflattened list member\n\tflattened := tag.Get(\"flattened\") != \"\"\n\n\txname := x... | {
"audio": "",
"image": "",
"text": " := NewXMLElement(xname)\n\t\t\tcurrent.AddChild(child)\n\t\t\tif err := b.buildValue(value.Index(i), child, \"\"); err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t}\n\t} else {\n\t\tlist := NewXMLElement(xname)\n\t\tcurrent.AddChild(list)\n\n\t\tfor i := 0; i < value.Len(); i+... | {
"audio": "",
"image": "",
"text": " _, c := range actual {\n\t\t// remove value c from exp\n\t\tfor i := 0; i < len(exp); i++ {\n\t\t\tif exp[i] == c {\n\t\t\t\texp = removeListElement(exp, i)\n\t\t\t\tif len(exp) == 0 {\n\t\t\t\t\treturn true\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn len(exp) == 0\n}",
"vide... |
{
"audio": "",
"image": "",
"text": "func (b *xmlBuilder) buildScalar(value reflect.Value, current *XMLNode, tag reflect.StructTag) error {\n\tvar str string\n\tswitch converted := value.Interface().(type) {\n\tcase string:\n\t\tstr = converted\n\tcase []byte:\n\t\tif !value.IsNil() {\n\t\t\tstr = base64.StdEncod... | {
"audio": "",
"image": "",
"text": "\t\t}\n\n\t\tstr = protocol.FormatTime(format, converted)\n\tdefault:\n\t\treturn fmt.Errorf(\"unsupported value for param %s: %v (%s)\",\n\t\t\ttag.Get(\"locationName\"), value.Interface(), value.Type().Name())\n\t}\n\n\txname := xml.Name{Local: tag.Get(\"locationName\")}\n\t... | {
"audio": "",
"image": "",
"text": " -1)\n\tstr = strings.Replace(str, \"=\", \"~\", -1)\n\treturn str\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (c *SES) WaitUntilIdentityExists(input *GetIdentityVerificationAttributesInput) error {\n\treturn",
"video": ""
} | {
"audio": "",
"image": "",
"text": " c.WaitUntilIdentityExistsWithContext(aws.BackgroundContext(), input)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " func(_ *Client, c *RemoteContext) error {\n\t\tc.Snapshotter = snapshotterName\n\t\treturn nil\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (c *CloudFront) WaitUntilDistributionDeployed(input *GetDistributionInput) error {\n\treturn",
"video": ""
} | {
"audio": "",
"image": "",
"text": " c.WaitUntilDistributionDeployedWithContext(aws.BackgroundContext(), input)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " func(_ *Client, c *RemoteContext) error {\n\t\tc.Snapshotter = snapshotterName\n\t\treturn nil\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (c *CloudFront) WaitUntilInvalidationCompleted(input *GetInvalidationInput) error {\n\treturn",
"video": ""
} | {
"audio": "",
"image": "",
"text": " c.WaitUntilInvalidationCompletedWithContext(aws.BackgroundContext(), input)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " func(_ *Client, c *RemoteContext) error {\n\t\tc.Snapshotter = snapshotterName\n\t\treturn nil\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (c *CloudFront) WaitUntilStreamingDistributionDeployed(input *GetStreamingDistributionInput) error {\n\treturn",
"video": ""
} | {
"audio": "",
"image": "",
"text": " c.WaitUntilStreamingDistributionDeployedWithContext(aws.BackgroundContext(), input)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " func(_ *Client, c *RemoteContext) error {\n\t\tc.Snapshotter = snapshotterName\n\t\treturn nil\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (c *OpsWorks) WaitUntilAppExists(input *DescribeAppsInput) error {\n\treturn",
"video": ""
} | {
"audio": "",
"image": "",
"text": " c.WaitUntilAppExistsWithContext(aws.BackgroundContext(), input)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " func(_ *Client, c *RemoteContext) error {\n\t\tc.Snapshotter = snapshotterName\n\t\treturn nil\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (c *OpsWorks) WaitUntilDeploymentSuccessful(input *DescribeDeploymentsInput) error {\n\treturn",
"video": ""
} | {
"audio": "",
"image": "",
"text": " c.WaitUntilDeploymentSuccessfulWithContext(aws.BackgroundContext(), input)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " func(_ *Client, c *RemoteContext) error {\n\t\tc.Snapshotter = snapshotterName\n\t\treturn nil\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (c *OpsWorks) WaitUntilInstanceOnline(input *DescribeInstancesInput) error {\n\treturn",
"video": ""
} | {
"audio": "",
"image": "",
"text": " c.WaitUntilInstanceOnlineWithContext(aws.BackgroundContext(), input)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " func(_ *Client, c *RemoteContext) error {\n\t\tc.Snapshotter = snapshotterName\n\t\treturn nil\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (c *OpsWorks) WaitUntilInstanceRegistered(input *DescribeInstancesInput) error {\n\treturn",
"video": ""
} | {
"audio": "",
"image": "",
"text": " c.WaitUntilInstanceRegisteredWithContext(aws.BackgroundContext(), input)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " func(_ *Client, c *RemoteContext) error {\n\t\tc.Snapshotter = snapshotterName\n\t\treturn nil\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (c *OpsWorks) WaitUntilInstanceTerminated(input *DescribeInstancesInput) error {\n\treturn",
"video": ""
} | {
"audio": "",
"image": "",
"text": " c.WaitUntilInstanceTerminatedWithContext(aws.BackgroundContext(), input)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " func(_ *Client, c *RemoteContext) error {\n\t\tc.Snapshotter = snapshotterName\n\t\treturn nil\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *AcceptSharedDirectoryOutput) SetSharedDirectory(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *SharedDirectory) *AcceptSharedDirectoryOutput {\n\ts.SharedDirectory = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *AddIpRoutesInput) SetIpRoutes(v []*IpRoute) *AddIpRoutesInput",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\ts.IpRoutes = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *AddIpRoutesInput) SetUpdateSecurityGroupForDirectoryControllers(v bool) *AddIpRoutesInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.UpdateSecurityGroupForDirectoryControllers = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tMap(int64ToInt).\n\t\tWithShrinker(IntShrinker).\n\t\tSuchThat(func(v int) bool {\n\t\t\treturn v >= min && v <= max\n\t\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *Computer) SetComputerId(v string) *Computer {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.ComputerId = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *ConditionalForwarder) SetReplicationScope(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " string) *ConditionalForwarder {\n\ts.ReplicationScope = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *CreateComputerOutput) SetComputer(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Computer) *CreateComputerOutput {\n\ts.Computer = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *CreateTrustInput) SetConditionalForwarderIpAddrs(v []*string) *CreateTrustInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.ConditionalForwarderIpAddrs = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *CreateTrustInput) SetTrustPassword(v string) *CreateTrustInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.TrustPassword = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DeleteTrustInput) SetDeleteAssociatedConditionalForwarder(v bool) *DeleteTrustInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.DeleteAssociatedConditionalForwarder = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tMap(int64ToInt).\n\t\tWithShrinker(IntShrinker).\n\t\tSuchThat(func(v int) bool {\n\t\t\treturn v >= min && v <= max\n\t\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *DescribeConditionalForwardersInput) SetRemoteDomainNames(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " []*string) *DescribeConditionalForwardersInput {\n\ts.RemoteDomainNames = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DescribeConditionalForwardersOutput) SetConditionalForwarders(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " []*ConditionalForwarder) *DescribeConditionalForwardersOutput {\n\ts.ConditionalForwarders = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DescribeDirectoriesOutput) SetDirectoryDescriptions(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " []*DirectoryDescription) *DescribeDirectoriesOutput {\n\ts.DirectoryDescriptions = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DescribeDomainControllersInput) SetDomainControllerIds(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " []*string) *DescribeDomainControllersInput {\n\ts.DomainControllerIds = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DescribeEventTopicsInput) SetTopicNames(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " []*string) *DescribeEventTopicsInput {\n\ts.TopicNames = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DescribeEventTopicsOutput) SetEventTopics(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " []*EventTopic) *DescribeEventTopicsOutput {\n\ts.EventTopics = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DescribeSharedDirectoriesInput) SetSharedDirectoryIds(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " []*string) *DescribeSharedDirectoriesInput {\n\ts.SharedDirectoryIds = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DescribeSharedDirectoriesOutput) SetSharedDirectories(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " []*SharedDirectory) *DescribeSharedDirectoriesOutput {\n\ts.SharedDirectories = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.