Documentation ¶
Index ¶
- func MergeScore(resultFilePath string, scoreFilePaths []string, skipRows uint32) error
- func MustColumnNumberToName(num int) string
- func NewCommand(_ *viper.Viper) *cobra.Command
- func PointToAxis(x, y int) string
- func ReadMap(rows [][]string, headers, excludeHeaders []string) ([]string, []map[string]string)
- type ScoreTable
- type StudentSubject
- type StudentSubjectScore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeScore ¶
func MustColumnNumberToName ¶
func PointToAxis ¶
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 ¶
func (*StudentSubject) String ¶
func (s *StudentSubject) String() string
type StudentSubjectScore ¶
func (*StudentSubjectScore) GetAxis ¶
func (s *StudentSubjectScore) GetAxis() string
func (*StudentSubjectScore) String ¶
func (s *StudentSubjectScore) String() string
Click to show internal directories.
Click to hide internal directories.