mirror of
https://github.com/TwiN/gatus.git
synced 2026-02-09 07:59:16 +00:00
* refactor: Simplify loops * refactor: Modernize loops using range over int --------- Co-authored-by: TwiN <twin@linux.com>
7 lines
111 B
Go
7 lines
111 B
Go
package config
|
|
|
|
// toPtr returns a pointer to the given value
|
|
func toPtr[T any](value T) *T {
|
|
return &value
|
|
}
|