Documentation ¶
Index ¶
- func CallGenerator(ctx context.Context, tc *structs.TestCase, configDir string) ([]byte, error)
- func Contains(array interface{}, obj interface{}) bool
- func GetCompiledBinaryFileAbsPath(typeName, moduleName, configDir string) (string, error)
- func GetCompiledBinaryFileName(typeName, moduleName string) string
- func GetSessionDir(workDir string, sessionId string) (string, error)
- func IsExecutableFile(filePath string) (bool, error)
- func IsProblemPackage(filePath string) (bool, error)
- func IsZipFile(filePath string) (bool, error)
- func JSONBytesObject(jsonBytes []byte, obj interface{}) bool
- func JSONStringObject(jsonStr string, obj interface{}) bool
- func ObjectToJSONByte(obj interface{}) []byte
- func ObjectToJSONString(obj interface{}) string
- func ObjectToJSONStringFormatted(conf interface{}) string
- func ParseGeneratorScript(script string) (string, []string, error)
- func RunUnixShell(options *structs.ShellOptions) (*structs.ShellResult, error)
- func XMLBytesObject(xmlStr []byte, obj interface{}) bool
- func XMLStringObject(xmlStr string, obj interface{}) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallGenerator ¶
func GetCompiledBinaryFileAbsPath ¶
根据配置文件将对应预编译文件转换成绝对路径
func GetSessionDir ¶
create and get session directory
func IsExecutableFile ¶
func IsProblemPackage ¶ added in v0.0.3
判断是否是题目包
func JSONBytesObject ¶
func JSONStringObject ¶
func ObjectToJSONByte ¶
func ObjectToJSONByte(obj interface{}) []byte
func ObjectToJSONString ¶
func ObjectToJSONString(obj interface{}) string
func ObjectToJSONStringFormatted ¶
func ObjectToJSONStringFormatted(conf interface{}) string
func ParseGeneratorScript ¶
解析generator脚本
func RunUnixShell ¶
func RunUnixShell(options *structs.ShellOptions) (*structs.ShellResult, error)
运行UnixShell,支持context
func XMLBytesObject ¶
func XMLStringObject ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.