Skip to content

Instantly share code, notes, and snippets.

@Jmainguy
Created June 19, 2019 14:26
Show Gist options
  • Save Jmainguy/57d76a11cdbcfb6fc0d32906149b329d to your computer and use it in GitHub Desktop.
Save Jmainguy/57d76a11cdbcfb6fc0d32906149b329d to your computer and use it in GitHub Desktop.
Figure out a type in golang
func parseStuff (stuff string) () {
fmt.Println(stuff)
}
parseStuff(pvc)
outputs
./main.go:68:15: cannot use pvc (type *"k8s.io/api/core/v1".PersistentVolumeClaim) as type string in argument to parseStuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment