fullstack-lang / gong

Gong (go+ng) is a go sub-language that compiles to go and angular. All valid go is valid gong and vice versa. Gong enables fast development of web applications. Gong is model centric and by default, a UML diagram editor of the model is embedded in each application.
MIT License
11 stars 1 forks source link

Provide a simple API for stacks with no persistance #455

Closed thomaspeugeot closed 7 months ago

thomaspeugeot commented 9 months ago

the current NewStack API is not useful where no persistance of data and diagrams editing is necessary

func NewStack(
    r *gin.Engine,
    stackPath string,
    unmarshallFromCode string,
    marshallOnCommit string,
    dbFileName string,
    embeddedDiagrams bool,
    withProbe bool) (
    stack *Stack) {
func NewTranscientStack( r *gin.Engine, stackPath string, withProbe bool) (stack *Stack) {

    return NewStack(r, stackPath, "", "", "", true, withProbe)
}

Steps: