🏷️ Added GoString method for File domain

This commit is contained in:
Maxim Lebedev 2023-11-09 07:53:27 +06:00
parent c680cca04b
commit 6a4b77fb58
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 4 additions and 0 deletions

View File

@ -42,3 +42,7 @@ func (f File) Dir() string {
func (f File) MediaType() string {
return mime.TypeByExtension(f.Ext())
}
func (f File) GoString() string {
return "domain.File(" + f.Path + ")"
}