Documentation ¶
Overview ¶
Copyright Fuzamei Corp. 2018 All Rights Reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
Constants ¶
View Source
const ( // 創建main.go的文件模板 CPFT_MAIN_GO = `` /* 256-byte string literal not displayed */ // 生成的配置文件模板 xxx.toml CPFT_CFG_TOML = `` /* 1464-byte string literal not displayed */ CPFT_RUNMAIN_BLOCK = `package main var ${PROJECTNAME} = ` // 生成项目运行主程序的模板 xxx.go // 顶部还需要加上package main //var bityuan = `CPFT_RUNMAIN` CPFT_RUNMAIN = `` /* 3273-byte string literal not displayed */ // 生成项目Makefile文件的模板 Makefile CPFT_MAKEFILE = `` /* 1186-byte string literal not displayed */ // 生成 .travis.yml 文件模板 CPFT_TRAVIS_YML = ` language: go go: - "1.9" - master ` // 生成 plugin/plugin.toml的文件模板 CPFT_PLUGIN_TOML = `` /* 472-byte string literal not displayed */ // 项目 cli/main.go 文件模板 CPFT_CLI_MAIN = `` /* 158-byte string literal not displayed */ // plugin/dapp/xxxx/commands/cmd.go文件的模板c CPFT_DAPP_COMMANDS = `package commands import ( "github.com/spf13/cobra" ) func Cmd() *cobra.Command { return nil }` // plugin/dapp/xxxx/plugin.go文件的模板 CPFT_DAPP_PLUGIN = `` /* 432-byte string literal not displayed */ // plugin/dapp/xxxx/executor/xxxx.go文件模板 CPFT_DAPP_EXEC = `` /* 1104-byte string literal not displayed */ // plugin/dapp/xxxx/proto/create_protobuf.sh文件模板 CPFT_DAPP_CREATEPB = `#!/bin/sh protoc --go_out=plugins=grpc:../types ./*.proto --proto_path=. ` // plugin/dapp/xxxx/proto/Makefile 文件模板 CPFT_DAPP_MAKEFILE = `all: sh ./create_protobuf.sh ` // plugin/dapp/xxxx/proto/xxxx.proto的文件模板 CPFT_DAPP_PROTO = `` /* 158-byte string literal not displayed */ // plugin/dapp/xxxx/types/types.go的文件模板cd CPFT_DAPP_TYPEFILE = `` /* 902-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.