Git Product home page Git Product logo

Comments (3)

MacklinEngineering avatar MacklinEngineering commented on May 25, 2024

Steps:

  • move the directive file from /builder into subo/subo/util because we are expanding score and use

  • Read in and parse (deserialize) the Directive.yml file (subo already does this)

  • Construct the new handler using the values provided by the user with good defaults otherwise

  • Append the new handler to the currently list of handlers

  • Write out (serialize) the Directive.yml file (subo already does this)

from subo.

MacklinEngineering avatar MacklinEngineering commented on May 25, 2024

Notes: Recreating the directive struct however, with my new headers appended.

Directive file already exists in subo.

Steps:
Unmarshall
Create Handler
Append Handler to directive file
Re-Marshall entire directive

Q: What does marshaling mean and do?
A: Marshaling = converting convert a Golang Struct into Byte data and "unmarshaling" does the exact opposite - takes byte data and converts it into a struct.

from subo.

MacklinEngineering avatar MacklinEngineering commented on May 25, 2024

To test:
Pull atmo's latest changes
cd into the example project, run subo
cd to subo
run make subo in subo folder
cd to target directory
run subo create handler /:resource to create a handler in that directory

from subo.

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.