1
0
mirror of https://github.com/beego/bee.git synced 2025-07-04 21:50:18 +00:00

Merge pull request #236 from amrfaissal/color-logger-feature

New tweaks
This commit is contained in:
astaxie
2016-08-02 09:34:48 +08:00
committed by GitHub
19 changed files with 813 additions and 207 deletions

View File

@ -287,3 +287,11 @@ func (s *strFlags) Set(value string) error {
*s = append(*s, value)
return nil
}
// CloseFile attempts to close the passed file
// or panics with the actual error
func CloseFile(f *os.File) {
if err := f.Close(); err != nil {
panic(err)
}
}