diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..757fee31c9045c1426c81fd153959ad2ac9c4109 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.idea \ No newline at end of file diff --git a/app/app.go b/app/app.go new file mode 100644 index 0000000000000000000000000000000000000000..8a2033cde6ad56452bdaf3e7b4df830602f8c353 --- /dev/null +++ b/app/app.go @@ -0,0 +1,20 @@ +package app + +import "net/http" + +type Application struct{ + Name string + Version string +} + +func NewApp() *Application{ + return &Application{} +} + +func (app Application) GetName()string{ + return app.Name +} + +func (app Application) Start(port string) error{ + return http.ListenAndServe(":"+port, nil) +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000000000000000000000000000000000000..f6fdfc49b9117bd077d78098d6040091985b23ed --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module go_frame_sage + +go 1.12