mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 03:20:09 +08:00
chore: fix function names in comment (#3383)
Signed-off-by: lvyaoting <lvyaoting@outlook.com>
This commit is contained in:
parent
bde4e5b699
commit
aad811391b
@ -19,7 +19,7 @@ func isFunction(value interface{}) bool {
|
||||
return reflect.ValueOf(value).Kind() == reflect.Func
|
||||
}
|
||||
|
||||
// isStructPtr returns true if the value given is a struct
|
||||
// isStruct returns true if the value given is a struct
|
||||
func isStruct(value interface{}) bool {
|
||||
return reflect.ValueOf(value).Kind() == reflect.Struct
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ func init() {
|
||||
w32.InitCommonControlsEx(&initCtrls)
|
||||
}
|
||||
|
||||
// SetAppIconID sets recource icon ID for the apps windows.
|
||||
// SetAppIcon sets resource icon ID for the apps windows.
|
||||
func SetAppIcon(appIconID int) {
|
||||
AppIconID = appIconID
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ func (d *assetHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
|
||||
}
|
||||
}
|
||||
|
||||
// serveFile will try to load the file from the fs.FS and write it to the response
|
||||
// serveFSFile will try to load the file from the fs.FS and write it to the response
|
||||
func (d *assetHandler) serveFSFile(rw http.ResponseWriter, req *http.Request, filename string) error {
|
||||
if d.fs == nil {
|
||||
return os.ErrNotExist
|
||||
|
@ -60,7 +60,7 @@ func (d *AssetServer) processWebViewRequest(r webview.Request) {
|
||||
}
|
||||
}
|
||||
|
||||
// processHTTPRequest processes the HTTP Request by faking a golang HTTP Server.
|
||||
// processWebViewRequestInternal processes the HTTP Request by faking a golang HTTP Server.
|
||||
// The request will be finished with a StatusNotImplemented code if no handler has written to the response.
|
||||
func (d *AssetServer) processWebViewRequestInternal(r webview.Request) {
|
||||
uri := "unknown"
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"github.com/wailsapp/wails/v2/internal/shell"
|
||||
)
|
||||
|
||||
// StartAtLogin will either add or remove this application to/from the login
|
||||
// ShowNotification will either add or remove this application to/from the login
|
||||
// items, depending on the given boolean flag. The limitation is that the
|
||||
// currently running app must be in an app bundle.
|
||||
func ShowNotification(title string, subtitle string, message string, sound string) error {
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
|
||||
type Screen = frontend.Screen
|
||||
|
||||
// ScreenGetAllScreens returns all screens
|
||||
// ScreenGetAll returns all screens
|
||||
func ScreenGetAll(ctx context.Context) ([]Screen, error) {
|
||||
appFrontend := getFrontend(ctx)
|
||||
return appFrontend.ScreenGetAll()
|
||||
|
Loading…
Reference in New Issue
Block a user