我的Go+语言初体验——(一)Go Plus的安装和简单应用

啊~小 l i 社区中级贡献者
人工智能领域新星创作者
2021-12-02 19:49:55

想学习什么是Go Plus,首先知道什么是Go

什么是Go

  • Go 是一个开源的编程语言,它能让构造简单、可靠且高效的软件变得容易。
  • Go是从2007年末由Robert Griesemer, Rob Pike, Ken Thompson主持开发,后来还加入了Ian Lance Taylor, Russ Cox等人,并最终于2009年11月开源,在2012年早些时候发布了Go 1稳定版本。现在Go的开发已经是完全开放的,并且拥有一个活跃的社区。

Go Plus基于Go开发,因此安装Go Plus之前需要先安装Go

Go的安装步骤

支持的操作系统:

  • Linux
  • FreeBSD
  • Mac OS X(也称为 Darwin)
  • Windows
  1. 安装包下载
    安装包下载地址为:https://golang.org/dl (这个可能打不开,建议使用第二个)
    如果打不开可以使用这个地址:https://golang.google.cn/dl/

img


选择对应的版本和操作系统的安装包进行安装(我使用的是Window11,因此我选择了):go1.17.3.windows-amd64.msi(双击打开,安装步骤和平时装软件一致!)
在window环境下不需要配置环境变量,会自动配置!
至此,Go环境已经搭建完成了!

Go Plus配置

Go+ 官网:https://goplus.org/
Go+ Github链接:https://github.com/goplus/gop#how-to-install (如果进不去,建议使用github加速,链接:https://toolwa.com/github 将github的网址放到加速的网页里面,访问速度就会起飞!)
下载源码文件!解压文件:

img


window安装:双击all.bat
linux/mac安装:./all.bash

img

这里会闪退报错,建议通过shell配置,首先执行这两条命令

go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.io,direct

然后会生成一个bin目录

img


将这个目录配置到环境变量
最后试一试gop

img


配置成功

测试安装环境:

创建一个go文件,例如这里使用test.go

package main

import "fmt"

func main() {
   fmt.Println("Hello, World!")
}

进入到test.go的同级目录,然后运行进入shell输入命令go run test.go,如果此处命令行输出Hello, World!说明Go安装成功!

编译器的选择推荐

  1. VSCode (我的选择!1. 安装插件goplus 2. 配置Debug)
  2. GoLand

配置控制台修改// .vscode\launch.json文件

img

// .vscode\launch.json
{
        "version": "0.0.1",
        "configurations": [
          {
            "name": "gop run",
            "type": "node",
            "request": "launch",
            "runtimeExecutable": "gop",
            "cwd": "${workspaceFolder}",
            "program": "${file}",
            "runtimeArgs": [
              "run"
            ],
            "environment": [],
            "console": "integratedTerminal",
          }
        ]
      }

VSCode

img


GoLand

img

活动地址:https://bbs.csdn.net/topics/603464006?utm_source=1573038595

...全文
4059 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
SeaBigStar 2021-12-05
  • 打赏
  • 举报
回复
安装成功
2021-12-05
  • 打赏
  • 举报
回复

装上了,感谢大佬

红目香薰 社区中级贡献者 2021-12-03
  • 打赏
  • 举报
回复

诶呦,不错哦。

啊~小 l i 社区中级贡献者 2021-12-02
  • 打赏
  • 举报
回复
如果博文对大家有用,记得三连哦
DivX Plus是一款简单好用的高品质媒体播放器软件。软件基于MPEG-4标准,针对 DivX、DivX Plus 和全新的 DivX HEVC 视频文件进行了优化,可以把MPEG-2格式的多媒体文件压缩至原来的10%,更可把VHS格式录像带格 式的文件压至原来的1%。是您观看视频,视频优化必不可少的工具软件。 DivX Plus软件包的主要功能 · 轻松将视频传输至DivX认证设备 —— DivX To Go 确保了所有能在 DivX Plus Player 播放的视频文件也同时能在全球2.5亿台DivX设备中的任何一台进行播放。用户只需跟随 DivX To Go 直观的向导式菜单,就能将视频从 DivX Plus Player 传输到DVD播放器、数字电视、 PlayStation® 3 等DivX设备中。 · 广泛且功能齐全的视频播放支持 —— DivX Plus Player 和 DivX Plus Web Player 可以支持多种现今最流行的视频格式的高品质播放。DivX Plus Codec Pack 还能够让用户在常用的第三方播放软件中播放DivX或MKV;例如将 DivX Plus Codec Pack 安装至 Windows Media player 后,便能在Windows 7中播放 MKV/H.264格式的 DivX Plus 高清视频。 . 出色的网络浏览器高清视频播放 —— DivX Plus Web Player 不仅让用户可以直接在浏览器中欣赏高品质的 DivX 和 DivX Plus 高清视频,更支持 5.1 声道环绕立体声和多种字幕。 基于标准的HTTP服务器和JavaScript编程开发的 DivX Plus Web Player 已经可以作为插件在包括Google Chrome, Firefox, Internet Explorer 和 Safari 在内的各种网络浏览器上使用。 · 支持 MKV 文件串流至游戏机 —— DivX Plus 软件可通过全新的DivX Plus Codec Pack 在 Windows 7 系统中将MKV格式的高清内容直接从 PC 串流到 PlayStation® 3 或 Xbox 360上。 · 高品质的视频转码器 —— DivX Plus Converter 已被重新设计,让用户不仅能以更易用的界面创建高品质的 DivX 和 DivX Plus 高清视频,更可轻松自定义文件大小、音轨或字幕等设置。另外,Converter 现在提供完全免费的 DivX Plus (.mkv) 输出,用户可以随时使用各种高级功能创建MKV视频文件。 DivX Plus截图
Editorial Reviews Product Description A hands-on guide to Microsoft's latest rich application development technology: Silverlight 4 Silverlight 4 is the newest version of the rich Internet application toolkit that provides support for .NET capabilities over the Internet. With this latest release of Silverlight, Microsoft has revolutionized the way that Web applications can be created. This book uses the popular Problem – Design – Solution strategy to demonstrate how to harness the power and abilities of Silverlight 4 to add value to the overall user experience of a Web site. Using a Web site created by the author as a reference point, you'll go through the steps of creating a live, fully functional application for the Web using Silverlight 4 and the Silverlight Control Toolkit. Along the way, the book addresses important design considerations, such as the use of Web Services and the SQL Server database. Uses the popular Problem – Design – Solution format show you how to harness the power of the latest version of Silverlight, Microsoft's rich Internet application toolkit Puts the author's own Web site to task as you learn to create rich user interfaces that integrate video, HTML, and social networking components Explains system linking and data flow, end user interface, system architecture based on Silverlight 4 and .NET 4, and more Includes coverage on integrating social networking and Facebook With this book, you'll quickly get started using the new features of Silverlight 4 to enhance the user experience of a Web site. Note: CD-ROM/DVD and other supplementary materials are not included as part of eBook file. From the Back Cover Create a fully functional application using Silverlight 4 Silverlight 4 boasts long-awaited features that conquer writing a Rich Internet Application. Using new line-of-business features in this book, you create a web application that's more responsive than a traditional ASP.NET web site. Leveraging new features and the improved Silverlight Toolkit, in each chapter you'll work through the problem statement, design analysis, and solution implementation. Silverlight 4: Problem–Design–Solution: Explains how to determine functional requirements for your site Details the latest features, such as charting, enhanced data entry controls, navigation framework, and element to element binding Covers the new Silverlight Toolkit featuring themes, charting, and layout management Uses the new .NET RIA Services for your middle tier and data access layers Utilizes existing Silverlight ASP.NET membership, authentication, and profile services Illustrates adding social networking to the application using a Silverlight based MySpace application Addresses generating revenue with Pay-Per-Click advertisements from Google AdSense and recurring monthly subscriptions using the PayPal? developer API Shows how to leverage the ASP.NET AJAX Control Toolkit to incorporate HTML content into a Silverlight application Includes step-by-step deployment instructions to host the site with a real shared hosted provider, Discount ASP.NET Wrox Problem – Design – Solution references give you solid, workable solutions to real-world development problems. Each chapter is devoted to a different scenario, analyzing every problem, examining relevant design issues, and implementing the ideal solution. wrox.com Programmer Forums Join our Programmer to Programmer forums to ask and answer programming questions about this book, join discussions on the hottest topics in the industry, and connect with fellow programmers from around the world. Code Downloads Take advantage of free code samples from this book, as well as code samples from hundreds of other books, all ready to use. Read More Find articles, ebooks, sample chapters and tables of contents for hundreds of books, and more reference resources on programming topics that matter to you.

1,074

社区成员

发帖
与我相关
我的任务
社区描述
Go+ 官方开发者社区。我们希望向广大的开发者和数据科学家介绍 Go+ 的定位和意义,并邀请更多开发者一起贡献代码、共建 Go+ 生态。 Go+ 官网:https://goplus.org/
其他 企业社区
社区管理员
  • Go+
  • 杨东杰
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

本社区为 Go+ 官方开发者社区。我们希望向广大的开发者和数据科学家介绍 Go+ 的定位和意义,并邀请更多开发者一起贡献代码、共建 Go+ 生态。

Go+ 官网:https://goplus.org/
GitHub地址:https://github.com/goplus/gop

试试用AI创作助手写篇文章吧