mirror of
https://github.com/safishamsi/graphify.git
synced 2026-07-12 18:37:12 +00:00
e7a03a0539
call-graph INFERRED edges, multi-language semantic extraction, SHA256 cache, MCP stdio server with shortest_path, Q&A memory feedback loop
28 lines
368 B
Go
28 lines
368 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
type Server struct {
|
|
port int
|
|
}
|
|
|
|
func NewServer(port int) *Server {
|
|
return &Server{port: port}
|
|
}
|
|
|
|
func (s *Server) Start() error {
|
|
return http.ListenAndServe(fmt.Sprintf(":%d", s.port), nil)
|
|
}
|
|
|
|
func (s *Server) Stop() {
|
|
fmt.Println("stopped")
|
|
}
|
|
|
|
func main() {
|
|
s := NewServer(8080)
|
|
s.Start()
|
|
}
|