{"id":1132,"date":"2020-01-15T15:38:21","date_gmt":"2020-01-15T15:38:21","guid":{"rendered":"https:\/\/golangbyexamples.com\/?p=1132"},"modified":"2020-01-15T15:38:29","modified_gmt":"2020-01-15T15:38:29","slug":"check-if-file-is-a-directory-go","status":"publish","type":"post","link":"https:\/\/golangbyexamples.com\/check-if-file-is-a-directory-go\/","title":{"rendered":"Check if file is a directory or not in Go (Golang)"},"content":{"rendered":"\n

See the below code to know if a file is a file or it is a directory
<\/p>\n\n\n\n