Go - Switch

Table of Contents

Example

switch {
    case a > b:
        return 1
    case a > c:
        return -1
    default:
        return 0
}

Powered by ComboStrap