Created
March 22, 2023 05:17
-
-
Save Mayankgupta688/47929d37726a6e8a66e7876aabab735b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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