Skip to content
iFurySt edited this page Jul 28, 2023 · 9 revisions

Welcome to the lol wiki!

bool

NewTrue & NewFalse

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
}
Clone this wiki locally