[go-nuts] Re: builtin function definitions

2020-07-28 Thread Shane H
Hrm, that bpaste site will only last a week, so, for posterity, I'll paste the script here #!/bin/bash if [[ "$#" -ne 1 ]]; then echo "No filename supplied, nothing to do" exit 0 fi INFILE="$1" echo "=== In file ===" cat $INFILE echo "===

[go-nuts] Re: builtin function definitions

2020-07-28 Thread Shane H
Thanks, I have a bash script that I use to examine the assembly code that is generated by a given go file https://bpa.st/MRJ4IWJFJ5YNHXFLCMMYGGSI3A But that takes me past the code that was used to generate that assembly I'm wanting the midpoint here, the code that the compiler sees, in order to

[go-nuts] Re: builtin function definitions

2020-07-28 Thread tokers
You may try to use `go tool compile -S ` and read the assemble codes to find the truth. On Wednesday, July 29, 2020 at 5:39:53 AM UTC+8 shan...@gmail.com wrote: > Hi all, I'm trying to understand what *exactly* the .(type) is doing in > the following statement > > switch foo := bar.(type) > > I