Open to implement the interface by http.FS required
(name string)
| 64 | |
| 65 | // Open to implement the interface by http.FS required |
| 66 | func (r *_resource) Open(name string) (fs.File, error) { |
| 67 | name = fmt.Sprintf(UIStaticPath+"/%s", name) |
| 68 | log.Debugf("open static path %s", name) |
| 69 | return r.fs.Open(name) |
| 70 | } |
| 71 | |
| 72 | // Register a new static resource which generated by ui directory |
| 73 | func (a *UIRouter) Register(r *gin.Engine, baseURLPath string) { |
no outgoing calls