-
Notifications
You must be signed in to change notification settings - Fork 0
Home
iFurySt edited this page Jul 28, 2023
·
9 revisions
Welcome to the lol wiki!
Just for convenience, you create the pointer to a Boolean value on one line.
package main
import (
"github.com/ifuryst/lol"
"net"
)
type IP struct {
Address string
Status *bool
}
func main() {
s := IP{
Address: net.ParseIP("8.8.8.8").String(),
Status: lol.NewFalse(),
}
// do sth
_ = s
}