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:
parent
8261500294
commit
decafe477c
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user