Giter Club home page Giter Club logo

multi's Introduction

multi

Golang separate on multiple files

Steps:

  1. Clone or initialize empty git project
  2. Enter to cloned project folder and prepare project structure
    • Example: project multi will have 2 packages: employee and sources
  3. Enter following commang to initialize
    • Example: go mod init github.com/egevorkyan/multi
    • Example Output: go: creating new go.mod: module github.com/egevorkyan/multi
  4. Finished tructure of my project created, time to write code
  5. main function must be placed in root folder of your project
    • Example: empsalary.go, locates on same level as go.mod
  6. Simplefile employees.txt created which contains below information (Full Name, basic salary, tax)
    Edi Tester,100000,33
    Ben Parcker,1500000,40
    Bill Nelson,45000,3
  7. Result - it can be any name of file and location, application will ask to input source file
    Enter Employees source file: /Users/eduardgevorkyan/Documents/GOLEARN/employees.txt
    Employee Id:     0
    Employee Name:   Edi Tester
    Employee Salary:         67000
    Employee Id:     1
    Employee Name:   Ben Parcker
    Employee Salary:         900000
    Employee Id:     2
    Employee Name:   Bill Nelson
    Employee Salary:         43650

multi's People

Contributors

egevorkyan avatar

Watchers

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