You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GetFileCatgory takes in a file extension which must begin with the leading dot e.g .png, .txt. It returns a string on success or one of these two errors:
1. ErrInvalidFormat - if there is no leading dot in the extension string
2. ErrNotFound - if extension cannot be located on the list of files