chore: os linux build

This commit is contained in:
SunBK201 2025-11-11 21:09:50 +08:00
parent fe889c4d49
commit 50fdf9c0cd
5 changed files with 38 additions and 0 deletions

View File

@ -1,3 +1,5 @@
//go:build linux
package netlink
import (

View File

@ -1,3 +1,5 @@
//go:build linux
package netlink
import (

View File

@ -1,3 +1,5 @@
//go:build linux
package netlink
import (

View File

@ -0,0 +1,30 @@
//go:build !linux
package netlink
import (
"github.com/sunbk201/ua3f/internal/config"
)
type Server struct {
cfg *config.Config
}
func New(cfg *config.Config) *Server {
s := &Server{
cfg: cfg,
}
return s
}
func (s *Server) Setup() (err error) {
return nil
}
func (s *Server) Start() (err error) {
return nil
}
func (s *Server) Close() (err error) {
return nil
}

View File

@ -1,3 +1,5 @@
//go:build linux
package netlink
import (