github.com/gofiber/fiber/v2@v2.47.0/internal/gopsutil/mem/mem_fallback.go (about) 1 //go:build !darwin && !linux && !freebsd && !openbsd && !solaris && !windows 2 // +build !darwin,!linux,!freebsd,!openbsd,!solaris,!windows 3 4 package mem 5 6 import ( 7 "context" 8 9 "github.com/gofiber/fiber/v2/internal/gopsutil/common" 10 ) 11 12 func VirtualMemory() (*VirtualMemoryStat, error) { 13 return VirtualMemoryWithContext(context.Background()) 14 } 15 16 func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, error) { 17 return nil, common.ErrNotImplementedError 18 } 19 20 func SwapMemory() (*SwapMemoryStat, error) { 21 return SwapMemoryWithContext(context.Background()) 22 } 23 24 func SwapMemoryWithContext(ctx context.Context) (*SwapMemoryStat, error) { 25 return nil, common.ErrNotImplementedError 26 }