merge_score

package
v0.0.0-...-a7c31ce Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeScore

func MergeScore(resultFilePath string, scoreFilePaths []string, skipRows uint32) error

func MustColumnNumberToName

func MustColumnNumberToName(num int) string

func NewCommand

func NewCommand(_ *viper.Viper) *cobra.Command

func PointToAxis

func PointToAxis(x, y int) string

func ReadMap

func ReadMap(rows [][]string, headers, excludeHeaders []string) ([]string, []map[string]string)

Types

type ScoreTable

type ScoreTable struct {
	SkipRows uint32
	ScoreMap map[StudentSubject]StudentSubjectScore
	// contains filtered or unexported fields
}

func LoadScoreTable

func LoadScoreTable(file *excelize.File, skipRows uint32) (*ScoreTable, error)
数据表样例如下:
 ___________________________________________________

1| 国际学院20xx级xxx班20xx-20xx学年第x学期成绩统计 | 2| 学生信息 | 语言课程分数 | 专业课程分数 | 3| 序号 姓名 语言班 | 语言课1 语言课2 | 专业课1 专业课2 |

A   B     C       D      E         F      G

func LoadScoreTableFromPath

func LoadScoreTableFromPath(path string, skipRows uint32) (*ScoreTable, error)

func (*ScoreTable) String

func (t *ScoreTable) String() string

type StudentSubject

type StudentSubject struct {
	ClassName   string
	StudentName string
	SubjectName string
}

func (*StudentSubject) String

func (s *StudentSubject) String() string

type StudentSubjectScore

type StudentSubjectScore struct {
	ScoreData string
	X, Y      int
}

func (*StudentSubjectScore) GetAxis

func (s *StudentSubjectScore) GetAxis() string

func (*StudentSubjectScore) String

func (s *StudentSubjectScore) String() string

Jump to

Keyboard shortcuts

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