Print print print

master
Elis Axelsson 2016-04-27 13:10:57 +02:00
parent cc3f9fa9dc
commit caf3c54515
1 changed files with 9 additions and 8 deletions

View File

@ -1,15 +1,12 @@
package main
import (
"WorstCaptcha"
"fmt"
// "github.com/kurrik/oauth1a"
"github.com/kurrik/twittergo"
"gopkg.in/gcfg.v1"
"os"
"WorstCaptcha"
"reflect"
"strings"
)
func main() {
@ -41,9 +38,13 @@ func main() {
// Get the link
imageUrl := media["media_url_https"]
fmt.Printf("%s => ", reflect.TypeOf(imageUrl))
fmt.Println(imageUrl)
// Parts of word
parts := strings.Split(tweet.Text(), " ")
//fmt.Println(tweet.Text())
// Build word without link
word := strings.Join(parts[0:len(parts)-1], " ")
fmt.Println(imageUrl)
fmt.Println(word)
}
}