Documentation
¶
Overview ¶
Copyright © 2022 Antonin Portelli <[email protected]>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright © 2022 Antonin Portelli <[email protected]>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright © 2022 Antonin Portelli <[email protected]>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Dbg = Logger{ Level: 2, Color: color.New(color.FgYellow), StdLogger: log.New(os.Stdout, "DEBUG : ", 0), }
var Emph = Logger{ Level: 0, Color: color.New(color.FgGreen, color.Bold), StdLogger: log.New(os.Stdout, "", 0), }
var Err = Logger{ Level: 0, Color: color.New(color.FgRed, color.Bold), StdLogger: log.New(os.Stderr, "ERROR : ", 0), }
var Inf = Logger{ Level: 1, Color: color.New(color.FgHiBlack), StdLogger: log.New(os.Stdout, "INFO : ", 0), }
var Level int = 0
Functions ¶
func AtMostLevel ¶
func ErrorCheck ¶
func SizeString ¶
Types ¶
type ByteSize ¶
type ByteSize float64
Pretty print sizes, from Effective Go (https://go.dev/doc/effective_go#constants)