mirror of
https://github.com/bakito/adguardhome-sync.git
synced 2024-11-14 11:57:32 +08:00
da289017a5
* generate model from openAPI schema * implement replica status #231 * Sync "Pause service blocking schedule" #234 * Sync "Safe Search Provider" #200
14 lines
185 B
Go
14 lines
185 B
Go
package utils
|
|
|
|
import "fmt"
|
|
|
|
func Ptr[I interface{}](i I) *I {
|
|
return &i
|
|
}
|
|
|
|
func PtrToString[I interface{}](i *I) string {
|
|
if i == nil {
|
|
return ""
|
|
}
|
|
return fmt.Sprintf("%v", i)
|
|
}
|