golang离线环境依赖包问题
nats批量publish最后一条疑似丢失

golang编译-ldflags -H windowsgui被认为是病毒

妙音 posted @ 2021年8月26日 17:22 in golang , 2521 阅读
 
 

介绍

 
    使用walk为程序做了一个windows界面, cmd窗口需要隐藏。使用了 go build -ldflags="-H windowsgui"
 
    结果exe程序被杀毒软件认为是病毒
 

为什么会认为是病毒?

 
    隐藏cmd窗口, 双击exe,可以直接启动,并且看不到任何窗口。这不就是病毒的喜欢干的事吗.
 
    所以有些杀毒软件, 干脆通杀, 使用了 "-H windowsgui" 直接被认为是病毒
 
    我们这些正常的需求该咋办呢?
 

解决办法

 
    在程序中,使用代码隐藏cmd窗口
 
 
import "github.com/lxn/win"

//隐藏cmd窗口
win.ShowWindow(win.GetConsoleWindow(), win.SW_HIDE)
 
    缺点:启动时会有很短暂的黑框闪现,不过问题不大
 
 
Avatar_small
sophia 说:
2023年6月18日 15:32

I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. 수원출장마사지

Avatar_small
Gaming mouse 说:
2023年6月19日 19:31

Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.Thanks

Avatar_small
six components of he 说:
2023年8月09日 16:43

The way you connect theory with real-world applications is impressive. Well done!

Avatar_small
sophia 说:
2023年8月20日 15:26

I was reading some of your content on this website and I conceive this internet site is really informative ! Keep on putting up. large rifle primers in stock

Avatar_small
sophia 说:
2023年8月27日 20:20

I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people. Mounjaro prescription for sale

Avatar_small
ความสำคัญของการพัฒนา 说:
2023年8月27日 22:13

This is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion, thank you.

Avatar_small
โบนัสและโปรโมชั่นการ 说:
2023年8月28日 11:50

This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here keep up the good work

Avatar_small
sophia 说:
2023年8月29日 00:56

I was reading some of your content on this website and I conceive this internet site is really informative ! Keep on putting up. เว็บแทงบอลดีที่สุดUFABET

Avatar_small
sophia 说:
2023年8月31日 17:23

Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post. livpure

Avatar_small
sophia 说:
2023年9月02日 20:48

Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post. 토토사이트

Avatar_small
Dave 说:
2023年9月06日 17:40

This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!. bubble shooter game

Avatar_small
Dave 说:
2023年9月11日 17:25

These rings are a symbol of love's timeless essence. 2 Carat Diamond Price

Avatar_small
Dave 说:
2023年9月16日 18:11

Keep up the good work; I read few posts on this website, including I consider that your blog is fascinating and has sets of the fantastic piece of information. Thanks for your valuable efforts. rugs auckland

Avatar_small
Navya Singh 说:
2023年9月23日 20:33

The Jaipur Escorts Service provides the companionship that every man deserves. These are not the kind of girls who are going to take advantage of you, these are girls with personalities who want to get to know you and be your friend. These women have a high level of self-esteem and want nothing more than to provide gentlemen like yourself with company for an evening or a lifetime. It doesn't matter what your profession is or what type of person you might be looking for, these women will fit in quite well in any environment. Mumbai Escort  || Escort Service in Bangalo

Avatar_small
Navya Singh 说:
2023年9月23日 20:35

Our Escort Agency is the best Escort Service in Mumbai . It offers comprehensive services, like outcall and incall service at your best possible pricing. Remember, you'll always find something to explore with Mumbai Escort Service!

Avatar_small
Navya Singh 说:
2023年9月23日 20:36

If you have been trying to find Escort Service in Bangalore for long and not getting any results then you are at the right place. We understand your situation because we have done this same task a lot of times before. That is why we make it our responsibility to provide an efficient and reliable escort service that can definitely bring an end to your search. With our services, you will get some of the best Bangalore escorts and other related items like accommodation which will cater to your every need.

Avatar_small
pomol 说:
2023年10月02日 21:40

I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. UFABETแทงบอลขั้นต่ำ10บาท

Avatar_small
pomol 说:
2023年10月03日 02:13

We have sell some products of different custom boxes.it is very useful and very low price please visits this site thanks and please share this post with your friends. UFABETเว็บที่คนเล่นเยอะสุด

Avatar_small
pomol 说:
2023年10月03日 09:32

I was reading your article and wondered if you had considered creating an ebook on this subject. Your writing would sell it fast. You have a lot of writing talent. UFABETเว็บไทย

Avatar_small
pomol 说:
2023年10月03日 13:24

Thanks for sharing the post.. parents are worlds best person in each lives of individual..they need or must succeed to sustain needs of the family. UFABETทางเข้าเว็บตรงมือถือ

Avatar_small
pomol 说:
2023年10月03日 15:16

Wonderful article. Fascinating to read. I love to read such an excellent article. Thanks! It has made my task more and extra easy. Keep rocking. UFABETค่าน้ำที่ต้องรู้

Avatar_small
seo akc 说:
2023年10月07日 03:05

it's really nice and meanful. it's really cool blog. Linking is very useful thing.you have really helped lots of people who visit blog and provide them usefull information. <a href="https://www.cbdflex.com/product/30ct-cbd-gummy-bears-300mg/">Buy CBD Gummy Bears</a>

Avatar_small
Dave 说:
2023年10月07日 11:05

Thanks for the blog filled with so many information. Stopping by your blog helped me to get what I was looking for. Now my task has become as easy as ABC. ฝัน เห็น สามเณร

Avatar_small
Dave 说:
2023年10月08日 13:32

I have bookmarked your blog, the articles are way better than other similar blogs.. thanks for a great blog! Jogo do Tigre

Avatar_small
SEO 说:
2023年10月09日 21:08

I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people. Bizdify Reputation Management Services

Avatar_small
Dave 说:
2023年10月11日 20:17

I have bookmarked your blog, the articles are way better than other similar blogs.. thanks for a great blog! CORTEXI

Avatar_small
Dave 说:
2023年10月25日 18:27

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. How do I retrieve USDT?

Avatar_small
wallpaper singapore 说:
2023年11月02日 01:39

Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post. Sajta de Pollo

Avatar_small
wallpaper singapore 说:
2023年11月03日 13:42

This article was written by a real thinking writer without a doubt. I agree many of the with the solid points made by the writer. I’ll be back day in and day for further new updates. wallpaper singapore

Avatar_small
Dav 说:
2023年11月05日 20:33

Wow! Such an amazing and helpful post this is. I really really love it. It's so good and so awesome. I am just amazed. I hope that you continue to do your work like this in the future also wallpaper singapore

Avatar_small
rimaakter 说:
2023年11月09日 17:29

Cách tạo trò chơi Bangin' Metal mà không cần thiếc

 

Kênh Gamek chuyên cập nhật tổng hợp thông tin điện tử về game mới nhất trong nước và thế giới với đa dạng trò chơi gấp dẫn hiện nay.Gamek là địa chỉ cập nhật tin game mới nhất, nhanh nhất trong 24h cho các anh em game thủ Việt Nam. Tại đây, các tin tức game online, code game, riview game hay,... được cập nhật liên tục cho anh em tham khảo và lựa chọn.  vui lòng truy cập vào đây tin gamek để biết thêm thông tin.

 

Avatar_small
mtpolic 说:
2023年11月12日 22:20

https://mtpolic.com

Description:
먹튀폴리스- 국내 및 해외 전문가들과 함께 먹튀검증을 진행하고 있으며, 먹튀사이트 및 안전사이트를 추려 회원분들에게 더 건강한 문화를 제공합니다. 먹튀검증을 꼭 받으셔서 피해보시는일 없길 바랍니다.

먹튀검증
먹튀폴리스
먹튀사이트
먹튀검증사이트
https://mtpolic.com/

Avatar_small
rimaakter 说:
2023年11月13日 13:00

Kenhacai5 Cá Cược Thể Thao Trực Tuyến

 

Kèo Nhà Cái Ngon là một trang web cá cược uy tín và chất lượng giúp các bạn trải nghiệm những trận đấu và cơ hội cá cược không giới hạn Cá cược thể thao trực tuyến ngày càng trở nên phổ biến đối với những người đam mê thể thao cũng như những người đặt cược thông thường. Với sự tiện lợi của việc đặt cược thoải mái ngay tại nhà riêng, nhiều lựa chọn cá cược và cơ hội thắng lớn, không có gì ngạc nhiên khi ngày càng có nhiều người chuyển sang nền tảng trực tuyến cho nhu cầu cá cược thể thao của họ. Một trong những nền tảng đã được công nhận trong những năm gần đây là Keonacai5, một trang cá cược thể thao trực tuyến đáng tin cậy. vui lòng truy cập vào đây  kèo nhà cái 5 để biết thêm thông tin.

 

Avatar_small
rimaakter 说:
2023年11月13日 13:38

Kenhacai5 Cá Cược Thể Thao Trực Tuyến

 

Kèo Nhà Cái Ngon là một trang web cá cược uy tín và chất lượng giúp các bạn trải nghiệm những trận đấu và cơ hội cá cược không giới hạn Cá cược thể thao trực tuyến ngày càng trở nên phổ biến đối với những người đam mê thể thao cũng như những người đặt cược thông thường. Với sự tiện lợi của việc đặt cược thoải mái ngay tại nhà riêng, nhiều lựa chọn cá cược và cơ hội thắng lớn, không có gì ngạc nhiên khi ngày càng có nhiều người chuyển sang nền tảng trực tuyến cho nhu cầu cá cược thể thao của họ. Một trong những nền tảng đã được công nhận trong những năm gần đây là Keonacai5, một trang cá cược thể thao trực tuyến đáng tin cậy. vui lòng truy cập vào đây  kèo nhà cái 5 để biết thêm thông tin.

Avatar_small
best nsfw chatbot 说:
2023年11月13日 15:24

It includes a very nice post with a lot of our resources. Thanks for sharing. I enjoy this post.

Avatar_small
Dave 说:
2023年11月13日 18:20

The packaging is so compact – perfect for my art-on-the-go adventures. pencil packing job

Avatar_small
CPA in Edmond OK 说:
2023年11月13日 20:56

I would really love to guest post on your blog. <a href="https://epsiloncpamarketin.wixsite.com/epsilon-accounting-s">CPA in Edmond OK</a>

Avatar_small
Dave 说:
2023年11月16日 17:39

This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here keep up the good work kuliah online kelas karyawan murah

Avatar_small
Dave 说:
2023年11月16日 19:12

This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here keep up the good work temazepam kopen ideal

Avatar_small
Dave 说:
2023年11月25日 13:44

Wow, cool post. I'd like to write like this too - taking time and real hard work to make a great article... but I put things off too much and never seem to get started. Thanks though. Crimsafe southside

Avatar_small
mubashir 说:
2023年12月08日 23:28

I can recommend primarily decent and even responsible tips, as a result view it: <a href=" https://www.fiverr.com/seo_mixbacklink/do-300-blog-comments-dofollow-backlinks-seo-link-building">seo</a>

Avatar_small
Dave 说:
2023年12月22日 13:41

Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include. roket288

Avatar_small
jack 说:
2023年12月23日 03:25

This is helpful, nonetheless it can be crucial so that you can check out the following website: <a href="https://calculator-converter.com/micrometers-to-meters.htm">micrometers to meters</a>

Avatar_small
Dave 说:
2023年12月24日 01:13

I was reading some of your content on this website and I conceive this internet site is really informative ! Keep on putting up. fake ausweis bestellen

Avatar_small
jack 说:
2023年12月25日 03:45

It is especially decent, though look into the tips during this home address. <a href="https://metric-calculator.com/convert-kilogram-to-gram.htm">kilogram to gram</a>

Avatar_small
jack 说:
2023年12月29日 04:18

Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing... <a href="https://godatingsite.com/in/Alberta/Red_Deer/Single_Women-1.php">Alberta Red Deer single women</a>

Avatar_small
wirepost 说:
2024年1月01日 19:53

I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people.

Avatar_small
Dave 说:
2024年1月07日 01:16

Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign. köpa weed online

Avatar_small
Dave 说:
2024年1月21日 00:15

I am jovial you take pride in what you write. It makes you stand way out from many other writers that can not push high-quality content like you. buy instagram auto likes

Avatar_small
Sexy Furries 说:
2024年1月25日 20:02

Sexy Furry Girls: Unveiling the Allure In the vast universe of furry fandom, sexy furry girls stand as alluring muses, captivating the hearts of enthusiasts. This section peels back the layers, revealing the enchanting allure that makes these characters the focal point of countless fantasies.

Avatar_small
iuytrfghj 说:
2024年1月27日 23:04

<a href="https://click.app4mobile-services.biz/storeLink/?url=http%3A%2F%2Fescortsnearby.com.au">Read More</a>
<a href="https://jump.fan-site.biz/rank.cgi?id=342&amp;mode=link&amp;url=https%3A%2F%2Fescortsnearby.com.au">Read More</a>
<a href="https://weblaunch.blifax.com/listener3/redirect?id=2c604957-4838-e311-bd25-000c29ac9535&amp;l=824869f0-503b-45a1-b0ae-40b17b1fc71e&amp;u=http%3A%2F%2Fescortsnearby.com.au">Read More</a>
<a href="https://www.zenaps.com/rclick.php?c_cnt=31844%7C0%7C%7C1398598589%7C%7Caw%7C0&amp;c_len=2592000&amp;c_ts=1398598589&amp;ir=nwlraitex&amp;mid=1586&amp;pr=http%3A%2F%2Fescortsnearby.com.au">Read More</a>
<a href="https://blog-parts.wmag.net/okitegami/redirect.php?u=https%3A%2F%2Fescortsnearby.com.au">Read More</a>
<a href="https://d-click.uhmailsrvc.com/u/25534/745/17078/2326_0/7b2db/?url=http%3A%2F%2Fescortsnearby.com.au">Read More</a>
<a href="https://d-click.uhmailsrvc.com/u/25534/745/17078/2326_0/7b2db/?url=https%3A%2F%2Fescortsnearby.com.au">Read More</a>
<a href="https://link.mercent.com/redirect.ashx?mr%3AmerchantID=ChasingFireflies&amp;mr%3AtargetUrl=https%3A%2F%2Fescortsnearby.com.au">Read More</a>
<a href="https://ad.eanalyzer.de/10008728?url=https%3A%2F%2Fescortsnearby.com.au">Read More</a>
<a href="https://naviking.localking.com.tw/about/redirect.aspx?mid=7&amp;url=https%3A%2F%2Fescortsnearby.com.au">Read More</a>
<a href="https://cc.loginfra.com/cc?a=sug.image&amp;i&amp;m=1&amp;nsc=v.all&amp;r&amp;u=http%3A%2F%2Fescortsnearby.com.au">Read More</a>
<a href="https://www.chungshingelectronic.com/redirect.asp?url=https%3A%2F%2Fescortsnearby.com.au">Read More</a>
<a href="https://old.sibindustry.ru/links/out.asp?url=http%3A%2F%2Fescortsnearby.com.au">Read More</a>
<a href="https://www.myauto.by/away.php?url=https%3A%2F%2Fescortsnearby.com.au">Read More</a>
<a href="https://www.myauto.by/away.php?url=http%3A%2F%2Fescortsnearby.com.au%2F">Read More</a>
<a href="https://www.konstella.com/go?url=http%3A%2F%2Fescortsnearby.com.au/">Read More</a>
<a href="https://www.konstella.com/go?url=http%3A%2F%2Fescortsnearby.com.au">Read More</a>
<a href="https://www.isadatalab.com/redirect?appId=69&amp;cat=Techniques%2Bculturales&amp;clientId=ee5a64e1-3743-9b4c-d923-6e6d092ae409&amp;url=http%3A%2F%2Fescortsnearby.com.au">Read More</a>
<a href="https://afte.mopo.jp/click?a=206733&amp;m=49641&amp;u=http%3A%2F%2Fescortsnearby.com.au">Read More</a>

Avatar_small
Nail Salon Chandigar 说:
2024年2月03日 19:34

Avalon Salon is the Best Nail salon in Chandigarh That Provides every type of Nail Extension, like Gel Acrylic Extension & and eyelash Extension.

Avatar_small
Dave 说:
2024年2月08日 23:33

This particular papers fabulous, and My spouse and i enjoy each of the perform that you have placed into this. I’m sure that you will be making a really useful place. I has been additionally pleased. Good perform! 에볼루션카지노

Avatar_small
Dave 说:
2024年2月09日 01:29

Efficiently written information. It will be profitable to anybody who utilizes it, counting me. Keep up the good work. For certain I will review out more posts day in and day out. hasch online

Avatar_small
St. Patrick's Day gr 说:
2024年2月11日 21:32

This is my first time i visit here and I found so many interesting stuff in your blog especially it's discussion, thank you.

Avatar_small
Rima Akter 说:
2024年2月13日 11:41

ในโลกของการเดิมพันออนไลน์ที่พัฒนาอย่างรวดเร็ว เบทฟิก กลายเป็นผู้เปลี่ยนเกม โดยนำเสนอแพลตฟอร์มที่มีประสิทธิภาพและใช้งานง่าย เพื่อปฏิวัติวิธีที่เรามีส่วนร่วมกับรูปแบบความบันเทิงยอดนิยมนี้ โดยเน้นความเรียบง่ายและเข้าถึงได้, เบทฟิก ให้บริการแก่นักเดิมพันทั้งผู้มีประสบการณ์และมือใหม่. กรุณาเยี่ยมชมที่นี่ betflik  สำหรับข้อมูลเพิ่มเติม.

Avatar_small
SEO EXPERRT 说:
2024年2月20日 17:40

Efficiently written information. It will be profitable to anybody who utilizes it, counting me. Keep up the good work. For certain I will review out more posts day in and day out. PetsGear

Avatar_small
masoomeenacademy 说:
2024年3月24日 03:29

Hi, your blog provided us with valuable information to work with. Thanks a lot for sharing. I am form Masoomeen Quran Academy. Online Shia Quran Academy for Ahle Tashi Community worldwide, for high-quality Islamic education services online for both kids & adults. To embark on your journey of Quranic learning, simply sign up at Shia Quran Academy Online. Our team of dedicated instructors, scholars, and experts is ready to guide you on this transformative path. I wish you to join our Online Quran Academy for both kids & adults in USA and start your spiritual journey full of knowledge, wisdom and blessings.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter