base

package
v1.69.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: BSD-3-Clause Imports: 0 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//CodeFileManager 类型文件
	CodeFileManager = map[string][]ICodeFile{}
)

Functions

func RegisterCodeFile

func RegisterCodeFile(filer ICodeFile)

RegisterCodeFile regeister code file

Types

type CodeFile

type CodeFile struct {
}

CodeFile 基础类

func (CodeFile) GetCodeType

func (CodeFile) GetCodeType() string

GetCodeType get cody type

func (CodeFile) GetDirName

func (CodeFile) GetDirName() string

GetDirName get directory name

func (CodeFile) GetDirReplaceTags

func (CodeFile) GetDirReplaceTags() []string

GetDirReplaceTags get directory replace tags

func (CodeFile) GetFileReplaceTags

func (CodeFile) GetFileReplaceTags() []string

GetFileReplaceTags get file replace tags

func (CodeFile) GetFiles

func (CodeFile) GetFiles() map[string]string

GetFiles get files

type DappCodeFile

type DappCodeFile struct {
	CodeFile
}

DappCodeFile dapp code source

func (DappCodeFile) GetCodeType

func (DappCodeFile) GetCodeType() string

GetCodeType get code type

type ICodeFile

type ICodeFile interface {
	GetCodeType() string
	GetDirName() string
	GetFiles() map[string]string //key:filename, val:file content
	GetDirReplaceTags() []string
	GetFileReplaceTags() []string
}

ICodeFile code file interface

Jump to

Keyboard shortcuts

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