Giter Site home page Giter Site logo

paulsayantan / termtube Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 1.0 3.91 MB

A Terminal Youtube App | Play, Listen & Enjoy!

License: BSD 3-Clause "New" or "Revised" License

Go 98.09% Dockerfile 1.91%
cli go golang hacktoberfest hacktoberfest2021 terminal-app youtube youtube-tui

termtube's Introduction

Hey ๐Ÿ‘‹, I'm Sayantan !

I am a Software Engineer at Amazon India

python




Languages & Tools I know


python Golang Java
Flask Git
Jupyter Pandas Tensorflow PyTorch Keras
Ubuntu Vscode

My Stats





GitHub Stats


GitHub Stats

termtube's People

Contributors

ashish-patwal avatar deepsourcebot avatar paulsayantan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ashish-patwal

termtube's Issues

Calls to exit/fatal clutters in function using defer

Description

In these cases, in case of failure, defer never gets called. Example:

defer os.Remove(filename) 
if bad { 
    log.Fatalf("something bad happened") 
} 

should be written as:

defer os.Remove(filename) 
if bad { 
    log.Printf("something bad happened") 
    return 
} 

Occurrences

There are 3 occurrences of this issue in the repository.

log.Fatal clutters defer vlc.Release()
https://github.com/belikesayantan/youtube-tui/blob/0fa12ea8ce96be8244db4c12fdbe9068481cc899/ytaudio/audioPlay.go#L22

log.Fatal clutters defer vlc.Release()
https://github.com/belikesayantan/youtube-tui/blob/0fa12ea8ce96be8244db4c12fdbe9068481cc899/ytvideo/videoPlay.go#L21

os.Exit clutters defer ui.Close()
https://github.com/belikesayantan/youtube-tui/blob/0fa12ea8ce96be8244db4c12fdbe9068481cc899/term/screen1.go#L70

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.