Answers for "optional parameter golang"

C
0

optional parameter golang

package main

import (
	"fmt"
)

func Testing(value ...interface{}) {
  for _, v:= range value {
  	fmt.Println(v)
  }
}

func main() {

	Testing("Content-Type", "application/json")
	Testing("200")
	fmt.Println("Hello, playground")
}
Posted by: Guest on May-05-2021

Code answers related to "optional parameter golang"

Code answers related to "C"

Browse Popular Code Answers by Language