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 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 { func isStruct(value interface{}) bool {
return reflect.ValueOf(value).Kind() == reflect.Struct return reflect.ValueOf(value).Kind() == reflect.Struct
} }

View File

@ -37,7 +37,7 @@ func init() {
w32.InitCommonControlsEx(&initCtrls) 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) { func SetAppIcon(appIconID int) {
AppIconID = appIconID 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 { func (d *assetHandler) serveFSFile(rw http.ResponseWriter, req *http.Request, filename string) error {
if d.fs == nil { if d.fs == nil {
return os.ErrNotExist 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. // The request will be finished with a StatusNotImplemented code if no handler has written to the response.
func (d *AssetServer) processWebViewRequestInternal(r webview.Request) { func (d *AssetServer) processWebViewRequestInternal(r webview.Request) {
uri := "unknown" uri := "unknown"

View File

@ -8,7 +8,7 @@ import (
"github.com/wailsapp/wails/v2/internal/shell" "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 // items, depending on the given boolean flag. The limitation is that the
// currently running app must be in an app bundle. // currently running app must be in an app bundle.
func ShowNotification(title string, subtitle string, message string, sound string) error { func ShowNotification(title string, subtitle string, message string, sound string) error {

View File

@ -8,7 +8,7 @@ import (
type Screen = frontend.Screen type Screen = frontend.Screen
// ScreenGetAllScreens returns all screens // ScreenGetAll returns all screens
func ScreenGetAll(ctx context.Context) ([]Screen, error) { func ScreenGetAll(ctx context.Context) ([]Screen, error) {
appFrontend := getFrontend(ctx) appFrontend := getFrontend(ctx)
return appFrontend.ScreenGetAll() return appFrontend.ScreenGetAll()