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

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

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

介绍

 
    使用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
AAA 说:
2021年9月03日 00:27

Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. магазин интернет магазин

Avatar_small
seo 说:
2021年9月05日 21:48

I found your this post while searching for some related information on blog search...Its a good post..keep posting and update the information. kalyan matka

Avatar_small
seo 说:
2021年9月05日 21:57

That is really nice to hear. thank you for the update and good luck. matka

Avatar_small
seo 说:
2021年9月10日 19:15

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. merchant services partner program

Avatar_small
dfg` 说:
2021年9月11日 18:15

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. lions breath carts

Avatar_small
dfg` 说:
2021年9月12日 21:28

It is actually in a similar fashion an awesome write-up i always most certainly savored investigating. It's not at all really day-to-day i always cultivate the method to seek out a single thing. https://barowatt.com

Avatar_small
Digital_Zone 说:
2021年9月14日 05:38

Very interesting blog. Alot of blogs I see these days don't really provide anything that I'm interested in, but I'm most definately interested in this one. Just thought that I would post and let you know. Warmtepomp Dendermonde

Avatar_small
Digital_Zone 说:
2021年9月14日 05:48

Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me. Alarmsystemen woning

Avatar_small
Digital_Zone 说:
2021年9月14日 05:53

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. Warmtepomp Erembodegem

Avatar_small
Digital_Zone 说:
2021年9月14日 05:57

Hey There. I found your blog using msn. This is a very well written article. I’ll be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I’ll definitely return. Alarminstallateurs

Avatar_small
Digital_Zone 说:
2021年9月14日 06:01

I am unable to read articles online very often, but I’m glad I did today. This is very well written and your points are well-expressed. Please, don’t ever stop writing. Warmtepomp Erpe-Mere

Avatar_small
Digital_Zone 说:
2021年9月14日 06:07

Thank you for such a well written article. It’s full of insightful information and entertaining descriptions. Your point of view is the best among many. Inbraakbeveiliging

Avatar_small
Digital_Zone 说:
2021年9月14日 06:11

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. Warmtepomp Gent

Avatar_small
Digital_Zone 说:
2021年9月14日 06:16

Wow, excellent post. I'd like to draft like this too - taking time and real hard work to make a great article. This post has encouraged me to write some posts that I am going to write soon. Camerabewakingssystemen

Avatar_small
Digital_Zone 说:
2021年9月14日 06:20

Keep up the good work , I read few posts on this web site and I conceive that your blog is very interesting and has sets of fantastic information. Warmtepomp Gijzegem

Avatar_small
Digital_Zone 说:
2021年9月14日 06:25

I think this is an informative post and it is very beneficial and knowledgeable. Therefore, I would like to thank you for the endeavors that you have made in writing this article. All the content is absolutely well-researched. Thanks... Alarm Antwerpen

Avatar_small
Digital_Zone 说:
2021年9月14日 06:30

You have a real ability for writing unique content. I like how you think and the way you represent your views in this article. I agree with your way of thinking. Thank you for sharing. Warmtepomp Haaltert

Avatar_small
Digital_Zone 说:
2021年9月14日 06:35

Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share. Terrasoverkappingen

Avatar_small
Digital_Zone 说:
2021年9月14日 06:39

I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. Alarmystemen Limburg

Avatar_small
Digital_Zone 说:
2021年9月14日 06:44

Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it. Warmtepomp Herzele

Avatar_small
Digital_Zone 说:
2021年9月14日 06:48

An interesting dialogue is price comment. I feel that it is best to write more on this matter, it may not be a taboo topic however usually individuals are not enough to talk on such topics. To the next. Cheers. Warmtepomp Hofstade

Avatar_small
Digital_Zone 说:
2021年9月14日 06:53

If more people that write articles involved themselves with writing great content like you, more readers would be interested in their writings. I have learned too many things from your article. Pergola op maat

Avatar_small
dfg` 说:
2021年9月14日 18:30

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

Avatar_small
seo 说:
2021年9月16日 14:58

I want to say thanks to you. I have bookmark your site for future updates. starting a payment processing company

Avatar_small
dfg` 说:
2021年9月16日 23:09

This is actually the kind of information I have been trying to find. Thank you for writing this information. Hard Money Lenders in Texas

Avatar_small
dfg` 说:
2021年9月17日 14:45 I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information. Social Defi
Avatar_small
dfg` 说:
2021年9月21日 15:37

That appears to be excellent however i am still not too sure that I like it. At any rate will look far more into it and decide personally! https://muabannhadat.tv/bat-dong-san/ben-tre

Avatar_small
dfg` 说:
2021年9月22日 17:07

I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. pied piper publishing

Avatar_small
dfg` 说:
2021年9月24日 14:28

It is my first visit to your blog, and I am very impressed with the articles that you serve. Give adequate knowledge for me. Thank you for sharing useful material. I will be back for the more great post. buy seeds for sale

Avatar_small
dfg` 说:
2021年9月26日 15:15

Hi there! Nice stuff, do keep me posted when you post again something like this! Salem Voice

Avatar_small
johnyking 说:
2021年9月26日 18:57

Thanks for the nice blog. It was very useful for me. I'm happy I found this blog. Thank you for sharing with us,I too always learn something new from your post. CKICK HERE

Avatar_small
dfg` 说:
2021年9月27日 15:56

You there, this is really good post here. Thanks for taking the time to post such valuable information. Quality content is what always gets the visitors coming. Mail order marijuana UK

Avatar_small
dfg` 说:
2021年9月27日 17:28

I really like your writing style, great information, thankyou for posting. situs idn poker

Avatar_small
dfg` 说:
2021年9月27日 21:08

Thank you so much as you have been willing to share information with us. We will forever admire all you have done here because you have made my work as easy as ABC. https://blackpods.org/

Avatar_small
dfg` 说:
2021年9月28日 18:50

That's the reason it is advisable that you need to right inspection earlier than writing. You can set up a lot better present with this. Fun88

Avatar_small
huram 说:
2021年9月28日 22:31

This is very significant, and yet necessary towards just click this unique backlink: <a href="https://www.thenewcanadians.com/?fbclid=IwAR3_6ZAviXa01yzNp94ajApHUvZANDZL3ENoZO1NTM26P0DbmDHzOqTs7eg">situs idn poker</a>

Avatar_small
dfg` 说:
2021年9月30日 15:49

Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.Thanks Best nigerian news

Avatar_small
johnyking 说:
2021年9月30日 16:33

I think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing. บาคาร่า

Avatar_small
ded 说:
2021年10月01日 02:20

I really loved reading your blog. It was very well authored and easy to undertand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In fact after reading, I had to go show it to my friend and he ejoyed it as well! buy cialis 40mg in australia

Avatar_small
dfg` 说:
2021年10月02日 17:59

The extremely quite possibly a decent deal that in actual fact extremely savored perusing. Isn't really usual that have the option to check a given idea. loft conversions

Avatar_small
johnyking 说:
2021年10月02日 18:03

Nice to read your article! I am looking forward to sharing your adventures and experiences. slotxo

Avatar_small
YOLO 说:
2021年12月02日 20:22

สล็อต Are you looking for money

Avatar_small
Dr.Billa 说:
2021年12月08日 05:29

The majority of real dildos are phallic-shaped but not all are. Real dildos are a neighborhood of human culture for millennia. Realdildos.com is the premier online dildo store for ladies. Only top quality well priced products get the excellence of being listed online purchasable dildo sex toys

Avatar_small
Denise Caroll 说:
2021年12月09日 17:55 Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. CableGallagher
Avatar_small
Denise Caroll 说:
2021年12月09日 18:03

I was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject. Refurbished Home

Avatar_small
Denise Caroll 说:
2021年12月09日 18:08

Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. FunkyAndCreative

Avatar_small
Denise Caroll 说:
2021年12月09日 18:13

Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. Librarian Chic

Avatar_small
Denise Caroll 说:
2021年12月09日 18:32

Very informative post! There is a lot of information here that can help any business get started with a successful social networking campaign. eulis.org

Avatar_small
Denise Caroll 说:
2021年12月09日 18:43

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

Avatar_small
Denise Caroll 说:
2021年12月09日 18:48

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

Avatar_small
Denise Caroll 说:
2021年12月09日 18:51

This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. TheBatwatrail

Avatar_small
Denise Caroll 说:
2021年12月09日 18:55

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. gtwn.net

Avatar_small
Denise Caroll 说:
2021年12月09日 18:59

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 Digg and Dot blog

Avatar_small
Denise Caroll 说:
2021年12月09日 19:04

I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. velocirepraptor.com

Avatar_small
Denise Caroll 说:
2021年12月09日 19:07

Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. RJCity

Avatar_small
Denise Caroll 说:
2021年12月09日 19:10

Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking. WorldFitnessCR

Avatar_small
Denise Caroll 说:
2021年12月09日 19:14

Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info. MeMagazineBlog

Avatar_small
Denise Caroll 说:
2021年12月09日 19:18

I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks! EverTravel

Avatar_small
Denise Caroll 说:
2021年12月09日 19:22

I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. OpenWorldBlog

Avatar_small
Denise Caroll 说:
2021年12月09日 19:55

A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. 100XCD

Avatar_small
Denise Caroll 说:
2021年12月09日 19:59

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. ThinkNOO

Avatar_small
Denise Caroll 说:
2021年12月09日 20:03

I would like to say that this blog really convinced me to do it! Thanks, very good post. TedXAshokau

Avatar_small
Denise Caroll 说:
2021年12月09日 20:11

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. g2cs.org

Avatar_small
Denise Caroll 说:
2021年12月09日 20:15

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. VisionSheen

Avatar_small
indian e visa eligib 说:
2021年12月10日 18:22

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.

Avatar_small
Dr.Billa 说:
2021年12月11日 05:51

Thanks for the marvelous post! ✅ I really enjoyed reading it, you might be a great author. I will certainly bookmark your blog and definitely will come back sometime soon. I want to encourage you to continue your great writing 온라인바카라

Avatar_small
Dr.Billa 说:
2021年12月26日 07:19

I am impressed. I don't think Ive met anyone who knows as much about this subject as you do. You are truly well informed and very intelligent. You wrote something that people could understand and made the subject intriguing for everyone. Really, great blog you have got here pre-loaded vcc

 

 

 

 

 

 

 

Fort Worth Roofing Company Provides Roof Repair, Roof Replacement & Commercial Roofing. We service Tarrant County and surrounding areas. Our roofing company offers free estimates for any repairs, storm damage or total roof replacements. We offer a 5-year warranty on all our work. Insurance claim assistance from a senior insurance claim specialist, along with professional repairs you can trust! Call us today, we are available 24/7 for any emergency roofing problems. We are a General roofing contractor that works on all types of materials. Whether its a Metal roof, Flat roof, Roof pitch, Wood shingle, and more! Fort Worth Roofing is certified by Owens Corning, GAF Materials Corporation, TAMKO Building Products, Inc., and CertainTeed. Call Today! roofing contractor fort worth

Avatar_small
Denise Caroll 说:
2021年12月26日 23:47

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. Photography and Videographer

Avatar_small
Denise Caroll 说:
2021年12月27日 17:54

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. kmspico ativador

Avatar_small
johnyking 说:
2021年12月30日 04:49

This blog is so nice to me. I will keep on coming here again and again. Visit my link as well.. 메이저사이트

Avatar_small
Dr.Billa 说:
2022年1月02日 05:51

Pretty nice post. I just stumbled upon your weblog and wanted to say that I have really enjoyed browsing your blog posts. After all I’ll be subscribing to your feed and I hope you write again soon! general coffee state park ga

Avatar_small
Denise Caroll 说:
2022年1月03日 04:21

Interesting and interesting information can be found on this topic here profile worth to see it. orgy

Avatar_small
Denise Caroll 说:
2022年1月09日 03:14

Super-Duper site! I am Loving it!! Will come back again, Im taking your feed also, Thanks. yoga teacher training london

Avatar_small
Dr.Billa 说:
2022年1月11日 14:31

You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers ✅ Kaamna

Avatar_small
Dr.Billa 说:
2022年1月12日 05:45

Everything is very open with a very clear description of the challenges. It was definitely informative. Your website is very helpful. Thanks for sharing On that website page, you'll see your description, why not read through this nclex review

Avatar_small
johnyking 说:
2022年1月12日 19:03

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. https://www.jackpotslotpg.com

Avatar_small
Denise Caroll 说:
2022年1月15日 16:59

Love to read it,Waiting For More new Update and I Already Read your Recent Post its Great Thanks. Velbehag

Avatar_small
Dr.Billa 说:
2022年1月17日 05:10

This article was written by a real thinking writer✅. I agree many of the with the solid points made by the writer of 토토커뮤니티

Avatar_small
Dr.Billa 说:
2022年1月20日 09:03

This Post is providing valuable and unique information✅ I know that you take a time and effort to make a awesome article aiqisp

Avatar_small
johny 说:
2022年1月21日 14:30

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


登录 *


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