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

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

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

介绍

 
    使用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>


登录 *


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