mirror of
https://github.com/kernelstub/Ferrum
synced 2026-06-21 13:55:09 +00:00
18 lines
296 B
Go
18 lines
296 B
Go
package core
|
|
|
|
type Logger interface {
|
|
Info(message string)
|
|
Success(message string)
|
|
Error(message string)
|
|
Verbose(message string)
|
|
}
|
|
|
|
type Context struct {
|
|
Logger Logger
|
|
Build string
|
|
}
|
|
|
|
func NewContext(logger Logger, build string) *Context {
|
|
return &Context{Logger: logger, Build: build}
|
|
}
|