Update: update godoc and clean go.yml

This commit is contained in:
vcaesar 2023-03-02 17:37:06 -08:00
parent 64c6b8bf80
commit 885d45d4bd
3 changed files with 6 additions and 9 deletions

View File

@ -1,9 +1,6 @@
name: Go name: Go
on: [push] on: [push]
jobs: jobs:
# build:
# name: Build
# runs-on: ubuntu-latest
test: test:
# name: build # name: build
strategy: strategy:

View File

@ -32,7 +32,7 @@ import (
const ( const (
// Version get the gohook version // Version get the gohook version
Version = "v0.31.2.113, Sierra Nevada!" Version = "v0.40.0.123, Sierra Nevada!"
// HookEnabled honk enable status // HookEnabled honk enable status
HookEnabled = 1 // iota HookEnabled = 1 // iota
@ -260,7 +260,7 @@ func End() {
events = map[uint8][]int{} events = map[uint8][]int{}
} }
// AddEvent add event listener // AddEvent add the block event listener
func addEvent(key string) int { func addEvent(key string) int {
cs := C.CString(key) cs := C.CString(key)
defer C.free(unsafe.Pointer(cs)) defer C.free(unsafe.Pointer(cs))
@ -271,7 +271,7 @@ func addEvent(key string) int {
return geve return geve
} }
// StopEvent stop event listener // StopEvent stop the block event listener
func StopEvent() { func StopEvent() {
C.stop_event() C.stop_event()
} }

View File

@ -12,11 +12,11 @@ package hook
import "github.com/vcaesar/keycode" import "github.com/vcaesar/keycode"
// MouseMap robotgo hook mouse's code map // MouseMap defines the robotgo hook mouse's code map
var MouseMap = keycode.MouseMap var MouseMap = keycode.MouseMap
// Keycode robotgo hook key's code map // Keycode defines the robotgo hook key's code map
var Keycode = keycode.Keycode var Keycode = keycode.Keycode
// Special is the special key map // Special defines the special key map
var Special = keycode.Special var Special = keycode.Special