example

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Index

Constants

This section is empty.

Variables

View Source
var UserRouter = router.Handler(func(c router.Context) {
	f, err := pkger.Open("/internal/app/customer_service/views/user.html")

	if err != nil {
		c.Writer().Header().Del("Content-Security-Policy")
		_, _ = c.Writer().Write([]byte(err.Error()))
		return
	}

	_, _ = io.Copy(c.Writer(), f)
})
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)
})

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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