Git Product home page Git Product logo

Comments (4)

PratikDhanave avatar PratikDhanave commented on June 3, 2024 2

I think we can create an interface which is a collection of services and we can call these methods/services from do.go

from dunner.

agentmilindu avatar agentmilindu commented on June 3, 2024

here I have implemented the interfaces in Python to make it easy for us to work with. please refer the branch 'python-function-protos'

from dunner.

ayushjn20 avatar ayushjn20 commented on June 3, 2024

The current structure in approved in #12 is not quite according to the Golang standard accepted by the community. Have a look at this repo and this section of "Effective Go". Although it is not an official structure, but it has been developed by observing the trend in bigger projects in Golang.
A small possible restructure patch could be (including the test files as mentioned in my comment on #13 ),

.
+-- cmd/
|    +-- do/
|    |    +-- do.go
|    |    +-- do_test.go
.    .
.    


+-- pkg/
|    +-- services/
|    |    +-- config/
|    |    |    +-- config.go
|    |    |    +-- config_test.go
|    |    +-- docker/
|    |    |    +-- docker.go
|    |    |    +-- docker_test.go
.    .    .
.    .
.

I will be ready a PR soon enough if someone approves the suggestion. Also, can this issue be re-opened?

from dunner.

agentmilindu avatar agentmilindu commented on June 3, 2024

@ayushjn20 I reopened the issue, you can send a PR

from dunner.

Related Issues (20)

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.