base

package
v1.75.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: BSD-3-Clause Imports: 0 Imported by: 2 modules, 8 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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