lab004

command
v0.0.0-...-f10d331 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 0 Imported by: 0

README

示例4,测试Asset文件时的路径

这个lab里面,static里面还有一个image文件夹,那么我们想asset image路径下的文件的时候使用image/pic_icon.png这种方式。 我们只要改下命令里面的路径参数就可以了

注意点

  • go-bindata.exe -pkg assets -o ..\assets\assets.go ./... 最后使用./...这样的方式可以实现用image/pic_icon.png的方式访问资源
  • go-bindata.exe -pkg assets -o ..\assets\assets.go . 这样的方式实现不了

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL