Versions in this module Expand all Collapse all v0 v0.3.2 Jun 18, 2025 Changes in this version + func BodyToString(header http.Header, body []byte) string + func CheckServiceIsExistInEnv(serviceName string) bool + func Contains(slice []string, target string) bool + func DownloadFile(downloadURL string, saveDir string) (string, error) + func GenerateNonceString(n int) string + func GetAOGDataDir() (string, error) + func GetAbsolutePath(p string, base string) string + func GetDownloadDir() (string, error) + func GetGpuInfo() (int, error) + func GetSystemVersion() int — darwin/amd64, linux/amd64, windows/amd64 + func GetUserDataDir() (string, error) + func HmacSha256(s, key string) string + func HmacSha256String(s, key string) string + func IpexOllamaSupportGPUStatus() bool + func IsHTTPText(header http.Header) bool + func IsServerRunning() bool + func ParseImageData(data []byte) ([][]byte, error) + func ParseTableOutput(output string) map[string]string + func Sha256hex(s string) string + func StartAOGServer(logPath string, pidFilePath string) error + func StopAOGServer(pidFilePath string) error + func UnzipFile(zipFile, destDir string) error + type MemoryInfo struct + MemoryType string + Size int + func GetMemoryInfo() (*MemoryInfo, error) + type SafeList struct + func NewSafeList() *SafeList + func (l *SafeList) Len() int + func (sl *SafeList) Back() *list.Element + func (sl *SafeList) Front() *list.Element + func (sl *SafeList) InsertAfter(v any, mark *list.Element) *list.Element + func (sl *SafeList) InsertBefore(v any, mark *list.Element) *list.Element + func (sl *SafeList) MoveAfter(e, mark *list.Element) + func (sl *SafeList) MoveBefore(e, mark *list.Element) + func (sl *SafeList) MoveToBack(e *list.Element) + func (sl *SafeList) MoveToFront(e *list.Element) + func (sl *SafeList) PushBack(v any) *list.Element + func (sl *SafeList) PushFront(v any) *list.Element + func (sl *SafeList) Remove(e *list.Element) any + type Win32_PhysicalMemory struct — windows/amd64 + SMBIOSMemoryType int