예제 #1
0
파일: main.go 프로젝트: donovank/hello
func PrintMulti() {
	if len(os.Args) > 2 {
		fmt.Println(c.C + c.Multi("Hello "+os.Args[2]) + c.R)
	} else {
		fmt.Println(c.C + c.Multi("Hello World!") + c.R)
	}
}
예제 #2
0
파일: main.go 프로젝트: tylrcarr/hello
func Multi(message string) {
	for {
		fmt.Println(c.Clear + c.Multi(message))
		time.Sleep(2 * time.Millisecond)
	}

}
예제 #3
0
파일: main.go 프로젝트: betropper/goassess
func PrintMulti(message string) {
	for {
		fmt.Print(c.Clear)
		fmt.Println(c.Multi("ayy lmao, " + message + "."))
		time.Sleep(100 * time.Millisecond)
	}
}
예제 #4
0
func ColorTest() {
	fmt.Println(c.R + "Red" + c.X)
	fmt.Println(c.O + "Orange" + c.X)
	fmt.Println(c.Y + "Yellow" + c.X)
	fmt.Println(c.G + "Green" + c.X)
	fmt.Println(c.C + "Cyan" + c.X)
	fmt.Println(c.B + "Blue" + c.X)
	fmt.Println(c.M + "Magenta" + c.X)
	fmt.Println(c.V + "Violet" + c.X)
	fmt.Println(c.B0 + "Base 0" + c.X)
	fmt.Println(c.B00 + "Base 00" + c.X)
	fmt.Println(c.B1 + "Base 1" + c.X)
	fmt.Println(c.B01 + "Base 01" + c.X)
	fmt.Println(c.B2 + "Base 2" + c.X)
	fmt.Println(c.B02 + "Base 02" + c.X)
	fmt.Println(c.B3 + "Base 3" + c.X)
	fmt.Println(c.B03 + "Base 03" + c.X)
	fmt.Println(c.Multi("MultiColored") + c.X)
	fmt.Println(c.Rc() + "Random" + c.X)
}
예제 #5
0
파일: main.go 프로젝트: muchanem/8ball
func main() {

	fmt.Println(c.Clear + c.Multi("Welcome to the Magic Eightball"))
	for {
		promt := i.StringInput(c.Yellow + "What is your question  > ")
		if promt == "love" {
			fmt.Println(c.Rc() + "I dont deal with peoples love lives")
		} else if promt == "death" {
			fmt.Println(c.Rc() + "You are morbid")
		} else {
			rand.Seed(42)
			answers := []string{
				"It is certain",
				"It is decidedly so",
				"Without a doubt",
				"Yes definitely",
				"You may rely on it",
				"As I see it yes",
				"Most likely",
				"Outlook good",
				"Yes",
				"Signs point to yes",
				"Reply hazy try again",
				"Ask again later",
				"Better not tell you now",
				"Cannot predict now",
				"Concentrate and ask again",
				"Don't count on it",
				"My reply is no",
				"My sources say no",
				"Outlook not so good",
				"Very doubtful",
			}
			fmt.Println(c.Rc() + "Magic 8-Ball says:" + answers[rand.Intn(len(answers))])
		}
	}

}
예제 #6
0
파일: lib.go 프로젝트: tslnc04/hello
func PrintMulti(message string) {
	for {
		fmt.Print(c.Clear + c.Multi(message) + " " + c.X)
		time.Sleep(500 * time.Millisecond)
	}
}
예제 #7
0
func PrintMulti(message string) {
	//Prints Hello World to the command line with each character a different color.

	fmt.Println(c.Multi("Hello " + message + c.Clear))
}
예제 #8
0
파일: main.go 프로젝트: troyjmiller/hello
func PrintMulti(message string) {
	for {
		fmt.Println(c.X + c.Multi(message))
		time.Sleep(500 * time.Millisecond)
	}
}
예제 #9
0
func PrintMulti(message string) {
	fmt.Println(c.Multi(message) + c.X)
}
예제 #10
0
func PrintForever(message string) {
	for {
		fmt.Println(c.Clear + c.Multi(message))
	}
}