Import symbol ! to passthrough errors
! is abbreviation of not nil
For example, to call function Sub in caller
func Sub(...) (T1, T2, error) {...}
# Dump of table italy_regions | |
# ------------------------------------------------------------ | |
DROP TABLE IF EXISTS `italy_regions`; | |
CREATE TABLE `italy_regions` ( | |
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | |
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `italy_regions_name_unique` (`name`) |
Import symbol ! to passthrough errors
! is abbreviation of not nil
For example, to call function Sub in caller
func Sub(...) (T1, T2, error) {...}
require "rubygems" | |
require "twitter" | |
# get these from apps.twitter.com | |
CONSUMER_KEY = "foo" | |
CONSUMER_SECRET = "bar" | |
OAUTH_TOKEN = "blee" | |
OAUTH_TOKEN_SECRET = "baz" | |
TWITTER_USER = "your_username" # needs to be the one associated with keys above |
//ABC JAZZ | |
//mp3: "http://listen.radionomy.com/abc-jazz" | |
//FRISKY FM | |
//mp3: "http://scfire-mtc-aa02.stream.aol.com:80/stream/1015" | |
http://stream2.friskyradio.com:8000/frisky_mp3_hi | |
http://chill.friskyradio.com/friskychill_mp3_high | |
//WWOZ | |
//mp3: "http://wwoz-sc.streamguys.com/wwoz-hi.mp3" |