| 123456789101112131415161718192021 |
- //go:build windows && (amd64 || arm64)
- package main
- import (
- "context"
- "os"
- "runtime"
- "clusterflow.dev/cfbrowser/internal/nativehost"
- )
- func init() { runtime.LockOSThread() }
- func run() error {
- backend, err := nativehost.NewWindows()
- if err != nil {
- return err
- }
- return nativehost.Run(context.Background(), os.Stdin, os.Stdout, backend, backend.Pump)
- }
|