Golang Idiomatic Solution
\nfunc insert(intervals [][]int, newInterval []int) [][]int {\n    \n    res := make([][]int, 0)\n    \n    i := 0\n    \n    for ; i < len(intervals) && interv
```\nfunc insert(intervals [][]int, newInterval []int) [][]int {\n    \n    res := make([][]int, 0)\n    \n    i := 0\n    \n    for ; i < len(intervals) && intervals[i][1] < newInterval[0]; i++ {\n        res = append(res, intervals[i])\n    }\n    \n    for ; i < len(intervals) && intervals[i][0] <= newInterval[1]; i++ {\n        newInterval[0] = min(intervals[i][0], newInterval[0])\n        newInterval[1] = max(intervals[i][1], newInterval[1])\n    }\n    \n    res = append(res, newInterval)\n    \n    for i < len(intervals) {\n        res = append(res, intervals[i])\n        i++\n    }\n    \n    return res\n}\n\nfunc min(x, y int) int {\n    if x < y {\n        return x\n    }\n    return y\n}\n\nfunc max(x, y int) int {\n    if x > y {\n        return x\n    }\n    return y\n}\n```
['Go']