1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

better formatting

This commit is contained in:
Jesse Duffield
2021-10-31 22:29:43 +11:00
parent f91892b8f1
commit 9989c96321
4 changed files with 110 additions and 29 deletions

View File

@ -52,6 +52,13 @@ func Min(x, y int) int {
return y
}
func Max(x, y int) int {
if x > y {
return x
}
return y
}
func AsJson(i interface{}) string {
bytes, _ := json.MarshalIndent(i, "", " ")
return string(bytes)