github.com/packtpublishing/learning-functional-programming-in-go@v0.0.0-20230130084745-8b849f6d58c4/Chapter06/04_onion/src/domain/api.go (about) 1 package domain 2 3 type Existence struct { 4 Exists bool `json:"exists"` 5 } 6 7 type Outcome struct { 8 Success bool `json:"success"` 9 } 10 11 type OutcomeAndMsg struct { 12 Success bool `json:"success"` 13 Message string `json:"message"` 14 } 15 16 type MultiStatus struct { 17 OutcomeAndMsgs []OutcomeAndMsg 18 }