Skip to content

Instantly share code, notes, and snippets.

@Mayankgupta688
Created March 22, 2023 05:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mayankgupta688/47929d37726a6e8a66e7876aabab735b to your computer and use it in GitHub Desktop.
Save Mayankgupta688/47929d37726a6e8a66e7876aabab735b to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main() {
getData(10, 20)
}
func getData(inputData ...int) {
for value, index := range inputData {
fmt.Printf("Value at index %d is %d \n", value, index)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment