func DrawRectExpanded(r rl.Rectangle, thickness float32, color rl.Color) { r.X -= thickness r.Y -= thickness r.Width += thickness * 2 r.Height += thickness * 2 rl.DrawRectangleRec(r, color) } func ClosestPowerOfTwo(number float32) int32 { o := int32(2) for o < int32(number) { o *= 2 } ret
(fp string)
| 1023 | // } |
| 1024 | |
| 1025 | func FileExists(fp string) bool { |
| 1026 | fp = strings.TrimSpace(fp) |
| 1027 | fsInfo, err := os.Stat(fp) |
| 1028 | |
| 1029 | if (err != nil && !os.IsExist(err)) || fsInfo.IsDir() { |
| 1030 | return false |
| 1031 | } |
| 1032 | |
| 1033 | return true |
| 1034 | } |
| 1035 | |
| 1036 | func FolderExists(fp string) bool { |
| 1037 | fp = strings.TrimSpace(fp) |
no outgoing calls
no test coverage detected