Skip to content

Commit 82770c4

Browse files
committed
Add more method stubs
1 parent e6e374b commit 82770c4

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

systemuri.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ func RegisterURLHandler(name string, scheme string, applicationPath string, argu
55
return registerURLHandler(name, scheme, applicationPath, argumentsPattern)
66
}
77

8+
// UnregisterURLHandler removes all registered entries based on the scheme
89
func UnregisterURLHandler(scheme string) error {
910
return unregisterURLHandler(scheme)
1011
}
12+
13+
// UnregisterURLHandlerByPath removes all registered entries based on the application path
14+
func UnregisterURLHandlerByPath(applicationPath string) error {
15+
return unregisterURLHandlerByPath(applicationPath)
16+
}

systemuri_darwin.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ func registerURLHandler(name string, scheme string, applicationPath string, argu
1313
}
1414

1515
func unregisterURLHandler(applicationPath string) error {
16-
// Implement macOS registration logic
17-
log.Println("Registering URL handler on macOS is not implemented")
16+
// Implement macOS unregistration logic
17+
log.Println("Not yet implemented")
18+
return nil
19+
}
20+
21+
func unregisterURLHandlerByPath(applicationPath string) error {
22+
log.Println("Not yet implemented")
1823
return nil
1924
}

systemuri_linux.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package systemuri
44

55
import (
66
"fmt"
7+
"log"
78
"os"
89
"os/user"
910
"path/filepath"
@@ -72,3 +73,8 @@ func unregisterURLHandler(scheme string) error {
7273

7374
return nil
7475
}
76+
77+
func unregisterURLHandlerByPath(applicationPath string) error {
78+
log.Println("Not yet implemented")
79+
return nil
80+
}

systemuri_windows.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ func registerURLHandler(name string, scheme string, applicationPath string, argu
1212
return nil
1313
}
1414

15+
func unregisterURLHandler(scheme string) error {
16+
log.Println("Not yet implemented")
17+
return nil
18+
}
19+
20+
func unregisterURLHandlerByPath(applicationPath string) error {
21+
log.Println("Not yet implemented")
22+
return nil
23+
}
24+
1525
//import (
1626
//"fmt"
1727
//"golang.org/x/sys/windows/registry"

0 commit comments

Comments
 (0)