OnPreStartupMessage is a hook to execute user functions before the startup message is printed.
(handler ...OnPreStartupMessageHandler)
| 281 | |
| 282 | // OnPreStartupMessage is a hook to execute user functions before the startup message is printed. |
| 283 | func (h *Hooks) OnPreStartupMessage(handler ...OnPreStartupMessageHandler) { |
| 284 | h.app.mutex.Lock() |
| 285 | h.onPreStartup = append(h.onPreStartup, handler...) |
| 286 | h.app.mutex.Unlock() |
| 287 | } |
| 288 | |
| 289 | // OnPostStartupMessage is a hook to execute user functions after the startup message is printed (or skipped). |
| 290 | func (h *Hooks) OnPostStartupMessage(handler ...OnPostStartupMessageHandler) { |