migrator

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrator

type Migrator interface {
	// migrate dumpfile to YaOJ's problem in specific dir
	Migrate(src string, dir string) (Problem, error)
}

type Problem

type Problem = problem.Problem

type Uoj

type Uoj struct{}

格式:

prob/
  data/ # 里面放数据(就是svn的1文件夹里的内容。也就是说data/problem.conf是配置文件
  statement/ # 放public资源,pdf啥的。不建子文件夹
    statement/statement.md # 特殊,放题面内容(UOJ好像是没有多语言题面的,所以默认中文
    statement/tutorial.pdf # 题解

func (Uoj) Migrate

func (r Uoj) Migrate(src string, dest string) (Problem, error)

Jump to

Keyboard shortcuts

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