Created
May 2, 2017 02:52
-
-
Save sapk/aceaf02d9d6814f0d9fecff17d31c04b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var readmeFile *git.Blob | |
for _, entry := range entries { | |
if entry.IsDir() { | |
continue | |
} | |
tp, ok := markup.ReadmeFileType(entry.Name()) | |
if !ok { | |
continue | |
} | |
readmeFile = entry.Blob() | |
if tp != "" { | |
break | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment