5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 07:21:32 +08:00

chore: fix function names in comment (#3383)

Signed-off-by: lvyaoting <lvyaoting@outlook.com>
This commit is contained in:
lvyaoting 2024-04-10 06:19:06 +08:00 committed by GitHub
parent bde4e5b699
commit aad811391b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 6 additions and 6 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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

View File

@ -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"

View File

@ -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 {

View File

@ -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()