1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:14:47 -07:00

update func to style used in file

This commit is contained in:
Mark Karpeles 2021-06-12 12:06:00 +09:00
parent 8261500294
commit decafe477c

View File

@ -45,11 +45,9 @@ func RegisterFormat(name, magic string, decode func(io.Reader) (Image, error), d
func ListFormats() []string {
formats, _ := atomicFormats.Load().([]format)
var list []string
for _, f := range formats {
list = append(list, f.name)
}
return list
}