golang/example: Go example projects - GitHub

文章推薦指數: 80 %
投票人數:10人

Clone the project. $ git clone https://go.googlesource.com/example $ cd example. Skiptocontent {{message}} golang / example Public Notifications Star 2.1k Fork 655 Goexampleprojects Apache-2.0License 2.1k stars 655 forks Star Notifications Code Pullrequests 7 Actions Projects 0 Security Insights More Code Pullrequests Actions Projects Security Insights master Branches Tags Couldnotloadbranches Nothingtoshow Loading {{refName}} default Couldnotloadtags Nothingtoshow {{refName}} default Loading 1 branch 0 tags Code Loading Latestcommit hyangah README.md:changethebuildinstruction … 787a929 Aug11,2021 README.md:changethebuildinstruction Aftergo1.16,`goget`runsinmodulesmode,andit'snotthe recommendedwayofinstallingbinariesnorawaytofetchsource code.Giventhatthisexamplerepoisdesignedfornewgousers whowanttolearn,itisbettertoguideuserstoclonetherepo usingthegitcommand. Updatedtheinstructionforappengine-hellosincegoappisgone. Ididn'ttesttheappengine-helloinstructionmyselfandnotsure ifitstillruns. Change-Id:I74a829203def9b062bee75637c7d2c6cef448a2f Reviewed-on:https://go-review.googlesource.com/c/example/+/340113 Trust:Hyang-AhHanaKim Run-TryBot:Hyang-AhHanaKim TryBot-Result:GoBot Reviewed-by:RebeccaStambler 787a929 Gitstats 27 commits Files Permalink Failedtoloadlatestcommitinformation. Type Name Latestcommitmessage Committime appengine-hello example/appengine-hello:UpdateGoSDKURL Jun10,2015 gotypes README.md:updatepackagepathstobegolang.org/x/example/... Apr7,2021 hello go.mod/go.sum:addago.modandgo.sumfileforgolang.org/x/example Jan13,2021 outyet example/outyet:Changebaseurltogo.googlesource.com. Jun10,2015 stringutil UpdateReversecomment Nov6,2014 template template:removeduplicateelementid Feb22,2016 LICENSE initialcommit Jul28,2014 README.md README.md:changethebuildinstruction Aug11,2021 go.mod go.mod/go.sum:addago.modandgo.sumfileforgolang.org/x/example Jan13,2021 go.sum go.mod/go.sum:addago.modandgo.sumfileforgolang.org/x/example Jan13,2021 Viewcode Goexampleprojects Clonetheproject helloandstringutil outyet appengine-hello gotypes template README.md Goexampleprojects ThisrepositorycontainsacollectionofGoprogramsandlibrariesthat demonstratethelanguage,standardlibraries,andtools. Clonetheproject $gitclonehttps://go.googlesource.com/example $cdexample https://go.googlesource.com/exampleisthecanonicalGitrepository. Itismirroredathttps://github.com/golang/example. helloandstringutil $cdhello $gobuild Atrivial"Hello,world"programthatusesastringutilpackage. Commandhellocovers: Thebasicformofanexecutablecommand Importingpackages(fromthestandardlibraryandthelocalrepository) Printingstrings(fmt) Librarystringutilcovers: Thebasicformofalibrary Conversionbetweenstringand[]rune Table-drivenunittests(testing) outyet $cdoutyet $gobuild Awebserverthatanswersthequestion:"IsGo1.xoutyet?" Topicscovered: Command-lineflags(flag) Webservers(net/http) HTMLTemplates(html/template) Logging(log) Long-runningbackgroundprocesses Synchronizingdataaccessbetweengoroutines(sync) Exportingserverstateformonitoring(expvar) Unitandintegrationtests(testing) Dependencyinjection Time(time) appengine-hello Atrivial"Hello,world"AppEngineapplicationintendedtobeusedasthe startingpointforyourowncode.Pleasesee GoogleAppEngineSDKforGo andQuickstartforGointheAppEngineStandardEnvironment. gotypes Thego/typespackageisatype-checkerforGoprograms.Itisoneofthemost complexpackagesinGo'sstandardlibrary,sowehaveprovidedthistutorialto helpyoufindyourbearings.Itcomeswithseveralexampleprogramsthatyou canobtainusinggogetandplaywithasyoulearntobuildtoolsthatanalyze ormanipulateGoprograms. template Atrivialwebserverthatdemonstratestheuseofthe templatepackage'sblockfeature. About Goexampleprojects Resources Readme License Apache-2.0License Releases Noreleasespublished Packages0 Nopackagespublished Usedby78 +70 Contributors12 Languages Go 93.0% HTML 2.4% JavaScript 2.1% CSS 1.6% Other 0.9% Youcan’tperformthatactionatthistime. Yousignedinwithanothertaborwindow.Reloadtorefreshyoursession. Yousignedoutinanothertaborwindow.Reloadtorefreshyoursession.



請為這篇文章評分?