You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

673 B

concatparams

Instructions

Écrire une fonction qui prend les arguments en paramètres et les retournes dans une string.

Les arguments doivent être séparés par un \n.

Fonction attendue

func ConcatParams(args []string) string {

}

Utilisation

Voici un éventuel programme pour tester votre fonction :

package main

import (
	"fmt"
	piscine ".."
)

func main() {
	test := []string{"Hello", "how", "are", "you?"}
	fmt.Println(piscine.ConcatParams(test))
}

Et son résultat :

student@ubuntu:~/[[ROOT]]/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test
Hello
how
are
you?
student@ubuntu:~/[[ROOT]]/test$