Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "0.1.0"
Current Version of tekleader
Variables ¶
View Source
var ( // AuthKey represents the auth token AuthKey string // Race represents the boolean to active/disable race conditon Race bool // Location represents the promotion location you want sort Location string // Promo represents the promotion you want sort Promo string // Course represents the course of the student Course string )
View Source
var Timeout int
Functions ¶
func PrintLeader ¶
func PrintLeader(students *SortStudents)
func PrintStatus ¶
func PrintStatus(persistent bool)
Types ¶
type Promotion ¶
type Promotion struct { Items []struct { Title string `json:"title"` Login string `json:"login"` Nom string `json:"nom"` Prenom string `json:"prenom"` Location string `json:"location"` } `json:"items"` Total int `json:"total"` }
func AppendPromotion ¶
func AppendPromotion() *Promotion
AppendPromotion fetch students obstruct API offset
type SortStudent ¶
type SortStudents ¶
type SortStudents []SortStudent
func SortPromotion ¶
func SortPromotion() *SortStudents
func (SortStudents) Len ¶
func (gpa SortStudents) Len() int
Collection of methods that satisfies sort.Interface
func (SortStudents) Less ¶
func (gpa SortStudents) Less(i, j int) bool
func (SortStudents) Swap ¶
func (gpa SortStudents) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.