package
Version:
v0.7.0
Opens a new window with list of versions in this module.
Published: Jun 19, 2020
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
View Source
var WaiterRouter = router.Handler(func(c router.Context) {
f, err := pkger.Open("/internal/app/customer_service/views/waiter.html")
if err != nil {
c.Writer().Header().Del("Content-Security-Policy")
_, _ = c.Writer().Write([]byte(err.Error()))
return
}
_, _ = io.Copy(c.Writer(), f)
})
Source Files
¶
Click to show internal directories.
Click to hide internal directories.