Documentation ¶
Index ¶
Constants ¶
View Source
const ( CODE_SUCCESS = 200 CODE_REQUEST_BAD = 400 CODE_SERVER_ERR = 500 CODE_NOFOUND_RECORD = 501 CODE_FAIL = CODE_SERVER_ERR SHEET_NAME_BODY = "正文" SHEET_NAME_HEADER = "页眉" SHEET_NAME_FOOTER = "页脚" PAGE_NO_CONST = "{页码}" FONT_NAME_SIMHEI = "simhei" FONT_FILE_SIMHEI = "simhei.ttf" FONT_SIZE = 8 TEMPLATE_JSON_FILENAME = "template_head_tail.json" )
View Source
const Metas = `` /* 4039-byte string literal not displayed */
Variables ¶
View Source
var InstCommonDefine = &CommonDefine{}
Functions ¶
This section is empty.
Types ¶
type CommonDefine ¶
type CommonDefine struct { BaseDir string FontDir string ConfigDir string ImageDir string JsonDir string InputDir string OutputDir string JsonFileHeadTail string PdfFileHeadTail string }
func (*CommonDefine) ReadFile ¶
func (c *CommonDefine) ReadFile(filename string) []byte
func (*CommonDefine) ReadJsonFile ¶
func (c *CommonDefine) ReadJsonFile(name string) ([]byte, error)
func (*CommonDefine) ReadJsonFileDefault ¶
func (c *CommonDefine) ReadJsonFileDefault() []byte
Click to show internal directories.
Click to hide internal directories.