I am new to Go and actually trying to figure out the way to handle images in templates. My goal is to generate a barcode and insert it into a template I wrote. The program already use go-wkhtmltopdf to generate pdf but lacks about images. My main question is : what's nicest way to do this ? Should I generate an image in a public directory then insert into img src tag/property ?
2条回答 默认 最新
doutu4335 2018-10-16 13:03关注Supposedly you might get away by using embedding image data directly into your HTML pages.
解决 无用评论 打赏 举报