Add helper function for retrieving home directory path

This commit is contained in:
2026-02-08 15:19:51 -05:00
parent 61b8576837
commit c57b3f6bec
3 changed files with 8 additions and 21 deletions
+7
View File
@@ -4,6 +4,7 @@ package main
// #include "types.h"
import "C"
import (
"github.com/rwinkhart/go-boilerplate/back"
"github.com/rwinkhart/libmutton/global"
)
@@ -82,3 +83,9 @@ func GetSSHDirPath() C.PascalString { return getPascalString(global.SSHDir) }
//
//export GetEntryRootPath
func GetEntryRootPath() C.PascalString { return getPascalString(global.EntryRoot) }
// GetHomePath returns:
// homePath
//
//export GetHomePath
func GetHomePath() C.PascalString { return getPascalString(back.Home) }