Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
[Go] Type assertion.
cwchen
Oct 7th, 2017
865
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Go
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
package
main
import
(
"fmt"
)
func
main
()
{
var
im
interface
{}
var
in
interface
{}
im
=
3
in
=
2
// type assertion
m
:=
im
.
(
int
)
n
:=
in
.
(
int
)
fmt
.
Println
(
m
+
n
)
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
πππ HOW TO EARN $5,000 A WEEK [GUIDE] π πβ
JavaScript | 8 sec ago | 0.67 KB
π₯ Swapzone Monetizing Method π₯
JavaScript | 21 sec ago | 0.67 KB
π¨ QUICK $1,500 IN 2 HOURS π―β
JavaScript | 1 min ago | 0.67 KB
π―π―π― EXCLUSIVE TRADING GUIDE
JavaScript | 1 min ago | 0.67 KB
ββ Free Crypto Method β ββ
JavaScript | 2 min ago | 0.67 KB
Infinite Money Glitch
JavaScript | 2 min ago | 0.67 KB
π―π― +50,000$ in 1 monthβ π―β
JavaScript | 3 min ago | 0.67 KB
β β Huge JS NODE Glitch on Swapzone β β
JavaScript | 3 min ago | 0.67 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!