Affected by GO-2023-1931
and 1 other vulnerabilities
GO-2023-1931: CasaOS contains weak JWT secrets in github.com/IceWhaleTech/CasaOS
GO-2023-2026: CasaOS Command Injection vulnerability in github.com/IceWhaleTech/CasaOS
package
Version:
v0.3.3
Opens a new window with list of versions in this module.
Published: Jul 1, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
* @Author: LinkLeong link@icewhale.com
* @Date: 2022-06-02 15:09:38
* @LastEditors: LinkLeong
* @LastEditTime: 2022-06-27 15:47:49
* @FilePath: /CasaOS/pkg/utils/loger/log.go
* @Description:
* @Website: https://www.casaos.io
* Copyright (c) 2022 by icewhale, All Rights Reserved.
定义一个int的别名
const (
DEBUG Level = iota
INFO
WARN
ERROR
FATAL
)
iota在const关键字出现时将被重置为0(const内部的第一行之前),const中每新增一行常量声明将使iota计数一次(iota可理解为const语句块中的行索引)。
type OLog interface {
Debug(v ...interface{})
Info(v ...interface{})
Warn(v ...interface{})
Error(v ...interface{})
Fatal(v ...interface{})
Path() string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.