Giter VIP home page Giter VIP logo

go's Introduction

GoLang语言学习

imooc文件夹主要学习目录

一个Go工程中主要包含以下三个目录:

src:源代码文件
pkg:包文件
bin:相关bin文件

测试文件

cd /src/example/
go test  
go test -run=TestAdd

运行单个go文件

go run 文件名.go 

git

 git status
 git add .
 git commit -m "更新文件"
 git status
 git push -u origin master

 拉
  cd src 
  git init
  git remote add origin https://github.com/chaodada/Go.git
  git pull origin master

Go中打印一个变量的数据类型

fmt.Println(reflect.TypeOf(a))

查看终端目前有没有配置代理

 curl ip.sb

为当前的项目创建一个 go.mod 文件。

当项目不在 GOPATH 中,直接执行:

go mod init

go's People

Contributors

chaodada avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.