{"id":52701,"library":"faiface-mainthread","title":"Mainthread","description":"Package mainthread provides a way to run functions on the main goroutine, useful for GUI applications that require thread-safe operations.","status":"active","version":"0.0.0-20171120011319-8b78f0a41ae3","language":"go","source_language":null,"source_url":"https://github.com/faiface/mainthread","tags":["main-thread","goroutine","gui","thread-safety"],"install":[{"cmd":"go get github.com/faiface/mainthread","lang":"bash","label":"Install github.com/faiface/mainthread"}],"dependencies":[],"imports":[{"symbol":"mainthread","correct":"github.com/faiface/mainthread"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/faiface/mainthread\"\n)\n\nfunc main() {\n\tmainthread.Run(func() {\n\t\tfmt.Println(\"Hello from main thread\")\n\t})\n}","lang":"go","description":"Runs a function on the main goroutine."},"warnings":[],"env_vars":null,"search_vec":"'applic':17 'function':9 'goroutin':13,27 'gui':16,28 'main':12,25 'main-thread':24 'mainthread':1,3 'oper':23 'packag':2 'provid':4 'requir':19 'run':8 'safe':22 'safeti':31 'thread':21,26,30 'thread-saf':20 'thread-safeti':29 'use':14 'way':6","created_at":"2026-06-15T07:08:15.644704+00:00","updated_at":"2026-06-15T07:08:15.644704+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/faiface/mainthread","github":"https://github.com/faiface/mainthread","docs":"https://pkg.go.dev/github.com/faiface/mainthread#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}