Code Monkey home page Code Monkey logo

testgolangprojectfirst's Introduction

first example golang project....

  1. we talk about assign variable in pkg/ex_variable/ex_variable.go
  2. we talk about assign variable in pkg/ex_control_flow/ex_control_flow.go
  3. we talk about function in pkg/ex_function/ex_function.go
  4. we talk about data types like map,slice,array in pkg/ex_data_types/ex_datatypes.go
  5. we talk about data pointer type in pkg/ex_pointer/ex_pointer.go
  6. we talk about struct in pkg/ex_struct/ex_struct.go
  7. we talk about interfaces in pkg/ex_interface/ex_interface.go
  8. we talk about interfaces in pkg/ex_interface/ex_interface.go

we talk about and write makefiles in our project to automate tasks...

we talk about go module we can name our module with this command go mod init github.com/yourgithubusername/yourprojectname and valla you set your module name and now you have go.mod that is have your module information like what is your module name or path and your go version in this project and after that we have our dependencies that is direct or indirect uses in project.

after that we talk about go get module_name@latest this is command help us to download and put it in go.mod file and we can imported in our modules files and use it....

we can use go get package_name to get package use go get -u package_name to get latest update use got get [email protected] to get version v0.2.0 of package_name that's it for now, thanks. ๐Ÿ˜๐Ÿ˜

testgolangprojectfirst's People

Contributors

yousefzinsazk78 avatar

Watchers

 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.