github.com/turingchain2020/turingchain@v1.1.21/cmd/tools/gencode/init.go (about)

     1  // Copyright Turing Corp. 2018 All Rights Reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package gencode
     6  
     7  import (
     8  	"github.com/turingchain2020/turingchain/cmd/tools/gencode/base"
     9  	_ "github.com/turingchain2020/turingchain/cmd/tools/gencode/dappcode" //init dapp code
    10  )
    11  
    12  //GetCodeFilesWithType get code file with type
    13  func GetCodeFilesWithType(typeName string) []base.ICodeFile {
    14  
    15  	if fileArr, ok := base.CodeFileManager[typeName]; ok {
    16  
    17  		return fileArr
    18  	}
    19  
    20  	return nil
    21  }