func bindBool()

in pkg/genlib/generator_interface.go [449:463]


func bindBool(field Field, fieldMap map[string]any) error {
	var emitFNotReturn emitFNotReturn
	emitFNotReturn = func(state *genState, buf *bytes.Buffer) error {
		switch customRand.Int() % 2 {
		case 0:
			buf.WriteString("false")
		case 1:
			buf.WriteString("true")
		}
		return nil
	}

	fieldMap[field.Name] = emitFNotReturn
	return nil
}