原书出处
Go语言圣经
{ const pngHeader = "\x89PNG\r\n\x1a\n"
image.RegisterFormat("png", pngHeader, Decode, DecodeConfig)
} 最终的效果是,主程序只需要匿名导入特定图像驱动包就可以用image.Dec
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Go语言圣经/_epub-src/ch10-05.html
EPUB SHA-256:e4f6c1cdfedcb2b3d9ecbbb7f8857396c77229ad34813ab2890657242b173fb3