docs

package
v6.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package docs 打包文档内容

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir() string

Dir 指向 /docs 的路径

func Handler

func Handler(folder string, stylesheet bool) http.Handler

Handler 返回文件服务中间件

func Path

func Path(p string) string

Path 指赂 /docs 下的 p 路径

Types

type FileInfo

type FileInfo struct {
	// 相对于打包根目录的地址,同时也会被作为路由地址
	Name string

	ContentType string
	Content     []byte
}

FileInfo 被打包文件的信息

Jump to

Keyboard shortcuts

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