Back to godoc.org

Package cmd

v0.0.0-...-6ba0884
Latest Go to latest

The highest tagged major version is .

Published: Oct 3, 2019 | License: Apache-2.0 | Module: github.com/TruthHun/html2json

Index

Variables

var RootCmd = &cobra.Command{
	Use:   "html2json",
	Short: "html转json工具",
	Long:  `将HTML转为各种小程序富文本组件 rich-text 支持的JSON,并支持自定义信任的HTML标签.`,
}

RootCmd represents the base command when called without any subcommands

func Execute

func Execute()

This is called by main.main(). It only needs to happen once to the rootCmd.

type Response

type Response struct {
	Error string      `json:"error,omitempty"`
	IsOK  bool        `json:"is_ok"`
	Nodes interface{} `json:"nodes,omitempty"`
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier