golang离线环境依赖包问题

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

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

介绍

 
    使用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
seo 说:
2021年8月31日 19:16 Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking. First Data ISO Program
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
dfg` 说:
2021年9月04日 22:29

Thank you for another great article. Where else could anyone get that kind of information in such a perfect way of writing? I have a presentation next week, and I am on the look for such information. project qt mod apk

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日 02:29

I just found this blog and have high hopes for it to continue. Keep up the great work, its hard to find good ones. I have added to my favorites. Thank You. how to sell credit card processing

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
seo 说:
2021年9月10日 20:56

A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one. merchant sales jobs

Avatar_small
seo 说:
2021年9月11日 00:54

You made such an interesting piece to read, giving every subject enlightenment for us to gain knowledge. Thanks for sharing the such information with us to read this... merchant sales rep

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
seo 说:
2021年9月11日 18:57

The blog and data is excellent and informative as well start a payment processing company

Avatar_small
seo 说:
2021年9月11日 19:37

As a seller of legal steroids, you can buy Crazy Bulk products, explore stacks and finally get the body you’ve always wanted chase iso program, first data iso program

Avatar_small
seo 说:
2021年9月12日 12:49

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.. kanadai vízum

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月13日 07:32

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

Avatar_small
Digital_Zone 说:
2021年9月13日 07:40

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

Avatar_small
Digital_Zone 说:
2021年9月13日 07:45

Fabulous post, you have denoted out some fantastic points, I likewise think this s a very wonderful website. I will visit again for more quality contents and also, recommend this site to all. Thanks. Pergola bouwen

Avatar_small
Digital_Zone 说:
2021年9月13日 07:51

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

Avatar_small
Digital_Zone 说:
2021年9月13日 07:56

You understand your projects stand out of the crowd. There is something unique about them. It seems to me all of them are brilliant. Warmtepomp Asse

Avatar_small
Digital_Zone 说:
2021年9月13日 08:01

I am incapable of reading articles online very often, but I’m happy I did today. It is very well written, and your points are well-expressed. I request you warmly, please, don’t ever stop writing. Prijs airco

Avatar_small
Digital_Zone 说:
2021年9月13日 08:06

Excellent post. I was always checking this blog, and I’m impressed! Extremely useful info specially the last part, I care for such information a lot. I was exploring this particular info for a long time. Thanks to this blog my exploration has ended. Warmtepomp Berlare

Avatar_small
Digital_Zone 说:
2021年9月13日 08:12

I visit your blog regularly and recommend it to all of those who wanted to enhance their knowledge with ease. The style of writing is excellent and also the content is top-notch. Thanks for that shrewdness you provide the readers! Warmtepomp

Avatar_small
Digital_Zone 说:
2021年9月13日 08:17

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 Denderleeuw

Avatar_small
Digital_Zone 说:
2021年9月13日 08:22

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. Zonnepanelen Roosdaal

Avatar_small
dfg` 说:
2021年9月13日 18:27

This is my first time visit to your blog and I am very interested in the articles that you serve. Provide enough knowledge for me. Thank you for sharing useful and don't forget, keep sharing useful info: doubledowncasino free slots to play

Avatar_small
dfg` 说:
2021年9月13日 22:40

Your article has piqued a lot of positive interest. I can see why since you have done such a good job of making it interesting. pikashow

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
dfg` 说:
2021年9月15日 15:59

Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you. Texas Local Moving vs. Long-Distance Moving

Avatar_small
dfg` 说:
2021年9月16日 12:56

Thanks for your insight for your fantastic posting. I’m glad I have taken the time to see this. Hard Money Lenders in Arizona

Avatar_small
seo 说:
2021年9月16日 13:33

This is a great article thanks for sharing this informative information. I will visit your blog regularly for some latest post. I will visit your blog regularly for Some latest post. merchant services partnerships

Avatar_small
dfg` 说:
2021年9月16日 14:19

I am continually amazed by the amount of information available on this subject. What you presented was well researched and well worded in order to get your stand on this across to all your readers. Hard Money Lenders in California

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日 16:17

Great post, you have pointed out some excellent points, I as well believe this is a very superb website. Hard Money Lenders in Florida

Avatar_small
Hardik 说:
2021年9月16日 18:12

I’m impressed, I must say. Truly rarely must i encounter a weblog that’s both educative and entertaining, and without a doubt, you have hit the nail about the head. Your concept is outstanding; the thing is something too few people are speaking intelligently about. My business is happy that we stumbled across this within my search for some thing relating to this.
<a href="https://shoppingpossible.com"title="How To Detect A Conference Call On Android">How To Detect A Conference Call On Android
</a>

[url=http://shoppingpossible.com]How To Detect A Conference Call On Android[/url]

Avatar_small
dfg` 说:
2021年9月16日 19:03

I am continually amazed by the amount of information available on this subject. What you presented was well researched and well worded in order to get your stand on this across to all your readers. Hard Money Lenders in New York

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月18日 19:45

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. Bambus Samen kaufen

Avatar_small
dfg` 说:
2021年9月19日 17:21

You completed a few fine points there. I did a search on the subject and found nearly all persons will go along with with your blog. Dangerous Texas Vacation Spots

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:00

Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. best trading softwares

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月23日 13:27

Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. Buy puppies ky

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月25日 00:16

Unused Kode Redeem FF 2021: Many players like you are looking for Kode Redeem FF Yang Belum Digunakan 2021. Perhaps, not getting the latest ff redeem code. If so, then here is good news for all Free Fire players looking for Free Fire Redeem Code 2021.

Avatar_small
dfg` 说:
2021年9月25日 14:34

This blog website is pretty cool! How was it made ! german rottweiler puppies for sale near me

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月27日 23:39

This type of message always inspiring and I prefer to read quality content, so happy to find good place to many here in the post, the writing is just great, thanks for the post. moving-local-distance-to-austin

Avatar_small
dfg` 说:
2021年9月27日 23:50

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. Thanks... Packing Tips: The Complete List of Dos And Don’ts For Long-Distance Moving

Avatar_small
dfg` 说:
2021年9月28日 00:04

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. Thanks... What Is the Average Cost of Moving an Apartment?

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

Today, I was just browsing along and came upon your blog. Just wanted to say good blog and this article helped me a lot, due to which I have found exactly I was looking. Free Business Listing

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
densie 说:
2021年9月29日 05:18

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. anonse erotyczne

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月01日 15:10

There are lots of dissertation internet websites on-line since you attain web famous from the site. disposable face mask

Avatar_small
dfg` 说:
2021年10月02日 14:29

Electrical power dissertation web-sites on-line when you likewise be given clearly advertised with your web page. 什麼是陽痿

Avatar_small
johnyking 说:
2021年10月02日 14:37

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

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
johnyking 说:
2021年10月03日 16:37

Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! red tiger

Avatar_small
johnyking 说:
2021年10月04日 03:46

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. write for us

Avatar_small
dfg` 说:
2021年10月07日 14:33

i am always looking for some free stuffs over the internet. there are also some companies which gives free samples. white label real estate crowdfunding software

Avatar_small
johnyking 说:
2021年10月07日 14:54

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. merchant iso program

Avatar_small
dfg` 说:
2021年10月09日 00:41

I’ve been searching for some decent stuff on the subject and haven't had any luck up until this point, You just got a new biggest fan!.. TOP 5

Avatar_small
dfg` 说:
2021年10月09日 00:47

Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene. TOP 5

Avatar_small
dfg` 说:
2021年10月09日 01:12

This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post.! PS Vita

Avatar_small
dfg` 说:
2021年10月09日 01:19

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

Avatar_small
dfg` 说:
2021年10月09日 01:26

Please continue this great work and I look forward to more of your awesome blog posts. PS Vita

Avatar_small
dfg` 说:
2021年10月09日 18:17

This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article. WhatsApp CRM

Avatar_small
dfg` 说:
2021年10月10日 21:00

Usually there are some dissertation sites making use of the website whenever you develop into in plain english reported in the site. endreinigung

Avatar_small
Best Social Plan 说:
2021年10月11日 02:17

 Best Social Plan is the most trusted company for providing social media services. Within some years it has gained popularity as a reliable company to its customers. This company is now managing its activity successfully. It is proved number one company by its quality services. 

Avatar_small
DDenise 说:
2021年10月12日 03:01

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. smm panel

Avatar_small
dfg` 说:
2021年10月12日 17:00

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. 먹튀폴리스

Avatar_small
dfg` 说:
2021年10月14日 13:31

Hey, this day is too much good for me, since this time I am reading this enormous informative article here at my home. Thanks a lot for massive hard work. Latest rap news

Avatar_small
dfg` 说:
2021年10月14日 15:34

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

Avatar_small
dfg` 说:
2021年10月16日 21:05

I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work. 핀벳88먹튀

Avatar_small
Mobile Tyres Reading 说:
2021年10月17日 01:10

Everybody deserves a great driving experience. That is the reason they bought the car in the first place. We can help you solve this problem in no time. Visit
https://www.wheelalignmentreading.co.uk/mobile-tyre-fitting/

Avatar_small
johnyking 说:
2021年10月17日 23:01

Great post, and great website. Thanks for the information! vaporizer

Avatar_small
johnyking 说:
2021年10月18日 01:11

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. ทางเข้า789

Avatar_small
Dr.Billa 说:
2021年10月18日 04:35

Great work✅ This is the type of information that should be shared around the web. I also have some information related to on my website✅ emirates flights


登录 *


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