Giter Site home page Giter Site logo

deb-simple API client about deb-simple HOT 7 CLOSED

esell avatar esell commented on May 28, 2024
deb-simple API client

from deb-simple.

Comments (7)

pkramme avatar pkramme commented on May 28, 2024

Wouldn't a simple system() call with the URL be enough?

from deb-simple.

xor-gate avatar xor-gate commented on May 28, 2024

System call, that is unacceptable! Golang has native support for HTTP transport. os.Exec as you mention as system() is 100% unportable across systems!

The native Client approach is fairly easy to implement.

from deb-simple.

pkramme avatar pkramme commented on May 28, 2024

from deb-simple.

xor-gate avatar xor-gate commented on May 28, 2024

Ooh no, don't feel attacked. I know how you feel when writing in C/C++. I write mostly C for embedded systems and know how hard it is!

from deb-simple.

pkramme avatar pkramme commented on May 28, 2024

Oh, that is good, i am always concerned pissing someone off... The reason for a system call would be, that other languages could use it too, and cross platform wouldn't be a problem IMO. I will look into libcurl for C (and the equivalent for python). Let's see if we can do something 👍

from deb-simple.

xor-gate avatar xor-gate commented on May 28, 2024

Probably an API build on top of Curl + some sort of JSON library would take 400% more time than a package in Golang :+)

from deb-simple.

esell avatar esell commented on May 28, 2024

I think since deb-simple exposes REST endpoints, it might make sense to just have other go programs use those. I'll close this for now but if there is a good reason to add this we can open it back up.

from deb-simple.

Related Issues (18)

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.