@@ -87,8 +87,17 @@ func ExampleSzengine_AddRecord_withInfo() {
8787 handleError (err )
8888 }
8989
90- fmt .Println (result )
91- // Output: {"DATA_SOURCE":"CUSTOMERS","RECORD_ID":"1003","AFFECTED_ENTITIES":[{"ENTITY_ID":100001}]}
90+ fmt .Println (jsonutil .PrettyPrint (result , jsonIndentation ))
91+ // Output:
92+ // {
93+ // "DATA_SOURCE": "CUSTOMERS",
94+ // "RECORD_ID": "1003",
95+ // "AFFECTED_ENTITIES": [
96+ // {
97+ // "ENTITY_ID": 100001
98+ // }
99+ // ]
100+ // }
92101}
93102
94103func ExampleSzengine_CloseExport () {
@@ -180,8 +189,13 @@ func ExampleSzengine_DeleteRecord_withInfo() {
180189 handleError (err )
181190 }
182191
183- fmt .Println (result )
184- // Output: {"DATA_SOURCE":"CUSTOMERS","RECORD_ID":"1003","AFFECTED_ENTITIES":[]}
192+ fmt .Println (jsonutil .PrettyPrint (result , jsonIndentation ))
193+ // Output:
194+ // {
195+ // "DATA_SOURCE": "CUSTOMERS",
196+ // "RECORD_ID": "1003",
197+ // "AFFECTED_ENTITIES": []
198+ // }
185199}
186200
187201func ExampleSzengine_ExportCsvEntityReport () {
@@ -339,8 +353,13 @@ func ExampleSzengine_FindInterestingEntitiesByEntityID() {
339353 handleError (err )
340354 }
341355
342- fmt .Println (result )
343- // Output: {"INTERESTING_ENTITIES":{"ENTITIES":[]}}
356+ fmt .Println (jsonutil .PrettyPrint (result , jsonIndentation ))
357+ // Output:
358+ // {
359+ // "INTERESTING_ENTITIES": {
360+ // "ENTITIES": []
361+ // }
362+ // }
344363}
345364
346365func ExampleSzengine_FindInterestingEntitiesByRecordID () {
@@ -363,8 +382,13 @@ func ExampleSzengine_FindInterestingEntitiesByRecordID() {
363382 handleError (err )
364383 }
365384
366- fmt .Println (result )
367- // Output: {"INTERESTING_ENTITIES":{"ENTITIES":[]}}
385+ fmt .Println (jsonutil .PrettyPrint (result , jsonIndentation ))
386+ // Output:
387+ // {
388+ // "INTERESTING_ENTITIES": {
389+ // "ENTITIES": []
390+ // }
391+ // }
368392}
369393
370394func ExampleSzengine_FindNetworkByEntityID () {
@@ -391,8 +415,18 @@ func ExampleSzengine_FindNetworkByEntityID() {
391415 handleError (err )
392416 }
393417
394- fmt .Println (result )
395- // Output: {"ENTITY_PATHS":[],"ENTITIES":[{"RESOLVED_ENTITY":{"ENTITY_ID":100001}}]}
418+ fmt .Println (jsonutil .PrettyPrint (result , jsonIndentation ))
419+ // Output:
420+ // {
421+ // "ENTITY_PATHS": [],
422+ // "ENTITIES": [
423+ // {
424+ // "RESOLVED_ENTITY": {
425+ // "ENTITY_ID": 100001
426+ // }
427+ // }
428+ // ]
429+ // }
396430}
397431
398432func ExampleSzengine_FindNetworkByEntityID_output () {
@@ -504,8 +538,18 @@ func ExampleSzengine_FindNetworkByRecordID() {
504538 handleError (err )
505539 }
506540
507- fmt .Println (result )
508- // Output: {"ENTITY_PATHS":[],"ENTITIES":[{"RESOLVED_ENTITY":{"ENTITY_ID":100001}}]}
541+ fmt .Println (jsonutil .PrettyPrint (result , jsonIndentation ))
542+ // Output:
543+ // {
544+ // "ENTITY_PATHS": [],
545+ // "ENTITIES": [
546+ // {
547+ // "RESOLVED_ENTITY": {
548+ // "ENTITY_ID": 100001
549+ // }
550+ // }
551+ // ]
552+ // }
509553}
510554
511555func ExampleSzengine_FindNetworkByRecordID_output () {
@@ -1298,8 +1342,13 @@ func ExampleSzengine_GetEntityByEntityID() {
12981342 handleError (err )
12991343 }
13001344
1301- fmt .Println (result )
1302- // Output: {"RESOLVED_ENTITY":{"ENTITY_ID":100001}}
1345+ fmt .Println (jsonutil .PrettyPrint (result , jsonIndentation ))
1346+ // Output:
1347+ // {
1348+ // "RESOLVED_ENTITY": {
1349+ // "ENTITY_ID": 100001
1350+ // }
1351+ // }
13031352}
13041353
13051354func ExampleSzengine_GetEntityByEntityID_output () {
@@ -1513,8 +1562,13 @@ func ExampleSzengine_GetEntityByRecordID() {
15131562 handleError (err )
15141563 }
15151564
1516- fmt .Println (result )
1517- // Output: {"RESOLVED_ENTITY":{"ENTITY_ID":100001}}
1565+ fmt .Println (jsonutil .PrettyPrint (result , jsonIndentation ))
1566+ // Output:
1567+ // {
1568+ // "RESOLVED_ENTITY": {
1569+ // "ENTITY_ID": 100001
1570+ // }
1571+ // }
15181572}
15191573
15201574func ExampleSzengine_GetEntityByRecordID_output () {
@@ -1728,8 +1782,12 @@ func ExampleSzengine_GetRecord() {
17281782 handleError (err )
17291783 }
17301784
1731- fmt .Println (jsonutil .Flatten (jsonutil .Normalize (result )))
1732- // Output: {"DATA_SOURCE":"CUSTOMERS","RECORD_ID":"1001"}
1785+ fmt .Println (jsonutil .PrettyPrint (jsonutil .Flatten (jsonutil .Normalize (result )), jsonIndentation ))
1786+ // Output:
1787+ // {
1788+ // "DATA_SOURCE": "CUSTOMERS",
1789+ // "RECORD_ID": "1001"
1790+ // }
17331791}
17341792
17351793func ExampleSzengine_GetRedoRecord () {
@@ -2065,8 +2123,13 @@ func ExampleSzengine_GetVirtualEntityByRecordID() {
20652123 handleError (err )
20662124 }
20672125
2068- fmt .Println (result )
2069- // Output: {"RESOLVED_ENTITY":{"ENTITY_ID":100001}}
2126+ fmt .Println (jsonutil .PrettyPrint (result , jsonIndentation ))
2127+ // Output:
2128+ // {
2129+ // "RESOLVED_ENTITY": {
2130+ // "ENTITY_ID": 100001
2131+ // }
2132+ // }
20702133}
20712134
20722135func ExampleSzengine_GetVirtualEntityByRecordID_output () {
@@ -3041,8 +3104,17 @@ func ExampleSzEngine_ProcessRedoRecord_withInfo() {
30413104 handleError (err )
30423105 }
30433106
3044- fmt .Println (result )
3045- // Output: {"DATA_SOURCE":"CUSTOMERS","RECORD_ID":"1001","AFFECTED_ENTITIES":[{"ENTITY_ID":100001}]}
3107+ fmt .Println (jsonutil .PrettyPrint (result , jsonIndentation ))
3108+ // Output:
3109+ // {
3110+ // "DATA_SOURCE": "CUSTOMERS",
3111+ // "RECORD_ID": "1001",
3112+ // "AFFECTED_ENTITIES": [
3113+ // {
3114+ // "ENTITY_ID": 100001
3115+ // }
3116+ // ]
3117+ // }
30463118}
30473119
30483120func ExampleSzengine_ReevaluateEntity () {
@@ -3088,8 +3160,15 @@ func ExampleSzengine_ReevaluateEntity_withInfo() {
30883160 handleError (err )
30893161 }
30903162
3091- fmt .Println (result )
3092- // Output: {"AFFECTED_ENTITIES":[{"ENTITY_ID":100001}]}
3163+ fmt .Println (jsonutil .PrettyPrint (result , jsonIndentation ))
3164+ // Output:
3165+ // {
3166+ // "AFFECTED_ENTITIES": [
3167+ // {
3168+ // "ENTITY_ID": 100001
3169+ // }
3170+ // ]
3171+ // }
30933172}
30943173
30953174func ExampleSzengine_ReevaluateRecord () {
@@ -3136,8 +3215,17 @@ func ExampleSzengine_ReevaluateRecord_withInfo() {
31363215 handleError (err )
31373216 }
31383217
3139- fmt .Println (result )
3140- // Output: {"DATA_SOURCE":"CUSTOMERS","RECORD_ID":"1001","AFFECTED_ENTITIES":[{"ENTITY_ID":100001}]}
3218+ fmt .Println (jsonutil .PrettyPrint (result , jsonIndentation ))
3219+ // Output:
3220+ // {
3221+ // "DATA_SOURCE": "CUSTOMERS",
3222+ // "RECORD_ID": "1001",
3223+ // "AFFECTED_ENTITIES": [
3224+ // {
3225+ // "ENTITY_ID": 100001
3226+ // }
3227+ // ]
3228+ // }
31413229}
31423230
31433231func ExampleSzengine_SearchByAttributes () {
0 commit comments