Documentation ¶
Index ¶
- Constants
- Variables
- func AnyToByte(data any) []byte
- func AnyToString(data any) string
- func CreateJsonFile(filepath string, data any) (err error)
- func Error(message string)
- func Fail(message string, tab ...bool)
- func GetJsonFile(filename string) (file []byte, err error)
- func GetNombreCompetence(cellules map[int]*structure.Cellule) (nbr int)
- func GetValue(result []byte, index string) string
- func Info(message string, tab ...bool)
- func Log(message string, logData string, tab ...bool)
- func PrettyString(str []byte) (string, error)
- func PrintCelluleLogs(celluleLogs map[int]structure.CelluleLog)
- func PrintColorTable(header []string, dataList [][]string, title_opt ...string)
- func PrintColorTableNoBorder(header []string, dataList [][]string, title_opt ...string)
- func PrintExplore(celluleID string, data map[int]structure.CelluleData)
- func PrintGridPosition(programme structure.Programme, size int)
- func PrintInfosGrille(infos structure.GridInfos)
- func PrintProgramme(psi structure.ProgrammeStatusInfos)
- func PrintProgrammeInfos(programme structure.ProgrammeInfos)
- func PrintShellCodeData(datas []structure.ShellcodeData)
- func PrintZoneActif(Zones []structure.ZonesGrid)
- func PrintZoneInfos(infos structure.ZoneInfos)
- func Success(message string, tab ...bool)
- func Title(title string)
- func Warning(message string, tab ...bool)
Constants ¶
View Source
const (
FILE_LOG = true
)
Variables ¶
View Source
var Filename string
Functions ¶
func AnyToString ¶
func CreateJsonFile ¶
func GetJsonFile ¶
func PrettyString ¶
func PrintCelluleLogs ¶
func PrintCelluleLogs(celluleLogs map[int]structure.CelluleLog)
func PrintColorTable ¶
func PrintColorTableNoBorder ¶
func PrintExplore ¶
func PrintExplore(celluleID string, data map[int]structure.CelluleData)
func PrintGridPosition ¶
func PrintGridPosition(programme structure.Programme, size int) { var header []string var data [][]string header = append(header, "secteur") for i := 0; i < size; i++ { header = append(header, fmt.Sprintf("zone %d", i)) } for i := 0; i < size; i++ { var tmpData []string tmpData = append(tmpData, aurora.Cyan(fmt.Sprintf("%d", i)).String()) for j := 0; j < size; j++ { value := aurora.Red("0").String() if programme.Position.SecteurID == i && programme.Position.ZoneID == j { value = aurora.Green("1").String() } tmpData = append(tmpData, value) } data = append(data, tmpData) } PrintColorTable(header, data) }
func PrintInfosGrille ¶
func PrintProgramme ¶
func PrintProgramme(psi structure.ProgrammeStatusInfos)
func PrintProgrammeInfos ¶
func PrintProgrammeInfos(programme structure.ProgrammeInfos)
func PrintShellCodeData ¶
func PrintShellCodeData(datas []structure.ShellcodeData)
func PrintZoneActif ¶
func PrintZoneInfos ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.