Skip to content

douglaszuqueto/tago-sdk-go-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tago SDK para GO

Inserindo dados

go run main.go --token="your_token" --payload="template.json"

ou (linux)

./bin/tago --token="your_token" --payload="template.json"

Estrutura

  • SDK
    • Admin
      • Device
      • Bucket
    • Device
      • Data
      • PubSub
        • Sub
        • Pub
        • Debug

TODO

  • Adição de Contexto
  • Camada de logger - Uber Zap

Coisas uteis

scanner := bufio.NewScanner(os.Stdin)

for scanner.Scan() {
    fmt.Println(scanner.Text())
}

if err := scanner.Err(); err != nil {
    log.Println(err)
}