Skip to content

Instantly share code, notes, and snippets.

@ihcsim
Last active January 31, 2022 23:07
Show Gist options
  • Save ihcsim/726c93705c52fef7d366e2b89dd76b5c to your computer and use it in GitHub Desktop.
Save ihcsim/726c93705c52fef7d366e2b89dd76b5c to your computer and use it in GitHub Desktop.
func main() {
b, n := read()
fmt.Printf("data: %s\nlen: %d\n", b, n)
}
func read() (string, int) {
s := "some data"
return s, len(s)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment