package server import "io" //Handler is handler type Handler struct { ServerJar string JavaPath string minRAM string maxRAM string args string stdout io.ReadCloser stdin io.WriteCloser log []Log } //NewHandler means everythign starts here :) func NewHandler(JavaPath string, ServerJar string, minRAM string, maxRAM string, args string) *Handler { NewlyCreatedHandler := Handler{ ServerJar: ServerJar, JavaPath: JavaPath, minRAM: minRAM, maxRAM: maxRAM, args: args, log: []Log{}, } return &NewlyCreatedHandler }