update go docs and examples

This commit is contained in:
darrell-thobe-sp
2025-05-13 13:16:33 -04:00
parent d89039d220
commit 9e03821762
255 changed files with 3678 additions and 3678 deletions

View File

@@ -84,7 +84,7 @@ import (
)
func main() {
data := []byte(`{
searchattributeconfig := []byte(`{
"displayName" : "New Mail Attribute",
"name" : "newMailAttribute",
"applicationAttributes" : {
@@ -95,7 +95,7 @@ func main() {
var searchAttributeConfig beta.SearchAttributeConfig
if err := json.Unmarshal(data, &searchAttributeConfig); err != nil {
if err := json.Unmarshal(searchattributeconfig, &searchAttributeConfig); err != nil {
fmt.Println("Error:", err)
return
}
@@ -362,11 +362,11 @@ import (
func main() {
name := `promotedMailAttribute` // string | Name of the extended search attribute configuration to patch. # string | Name of the extended search attribute configuration to patch.
jsonPatchOperation := fmt.Sprintf(`[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]`) // []JsonPatchOperation |
jsonpatchoperation := []byte(`[{op=replace, path=/name, value=newAttributeName}, {op=replace, path=/displayName, value=new attribute display name}, {op=add, path=/applicationAttributes, value={2c91808b79fd2422017a0b35d30f3968=employeeNumber}}]`) // []JsonPatchOperation |
var jsonPatchOperation beta.JsonPatchOperation
if err := json.Unmarshal(data, &jsonPatchOperation); err != nil {
var jsonPatchOperation beta.[]JsonPatchOperation
if err := json.Unmarshal(jsonpatchoperation, &jsonPatchOperation); err != nil {
fmt.Println("Error:", err)
return
}