mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-03 07:37:13 -04:00
Improve api
This commit is contained in:
+4
-1
@@ -12,5 +12,8 @@ func DetectFiletype(defs []*Def, filename string, firstLine []byte) *Def {
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
emptyDef := new(Def)
|
||||
emptyDef.FileType = "Unknown"
|
||||
emptyDef.rules = new(Rules)
|
||||
return emptyDef
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user