mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-09 20:37:47 +00:00
update go docs and examples
This commit is contained in:
@@ -865,7 +865,7 @@ func main() {
|
||||
|
||||
|
||||
var requestBody beta.RequestBody
|
||||
if err := json.Unmarshal(data, &requestBody); err != nil {
|
||||
if err := json.Unmarshal(requestbody, &requestBody); err != nil {
|
||||
fmt.Println("Error:", err)
|
||||
return
|
||||
}
|
||||
@@ -938,7 +938,7 @@ import (
|
||||
|
||||
func main() {
|
||||
id := `ef38f94347e94562b5bb8424a56397d8` // string | The ID of the work item # string | The ID of the work item
|
||||
data := []byte(`{
|
||||
workitemforward := []byte(`{
|
||||
"targetOwnerId" : "2c9180835d2e5168015d32f890ca1581",
|
||||
"comment" : "I'm going on vacation.",
|
||||
"sendNotifications" : true
|
||||
@@ -946,7 +946,7 @@ func main() {
|
||||
|
||||
|
||||
var workItemForward beta.WorkItemForward
|
||||
if err := json.Unmarshal(data, &workItemForward); err != nil {
|
||||
if err := json.Unmarshal(workitemforward, &workItemForward); err != nil {
|
||||
fmt.Println("Error:", err)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user