File: ops.go

package info (click to toggle)
golang-github-evilsocket-islazy 1.10.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 296 kB
  • sloc: sh: 20; javascript: 8; makefile: 3
file content (14 lines) | stat: -rw-r--r-- 231 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package main

import (
	"fmt"

	"github.com/evilsocket/islazy/ops"
)

func main() {
	s := ops.Ternary(1 == 2, "equal", "not equal").(string)
	fmt.Println(s)
	s = ops.Ternary(2 == 2, "equal", "not equal").(string)
	fmt.Println(s)
}