Some magic features implemented using golang's generics
You can commit PR to this repository
go get -u github.com/gobkc/do
package main
import (
"github.com/gobkc/do"
"log"
)
func main() {
a := 1
log.Println(do.OneOf(a==1,true,false))
}
result : true
© Gobkc, 2023~time.Now
Released under the Apache License