sample-code

module
v0.0.0-...-81d1297 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2019 License: GPL-3.0

README

Sample Code Using Go Language

Sample Code is made specially for sample code users who also want to use Go Language as based of the langugae programming.

Project Context and features

When it comes to choosing a Go framework, there's a lot of confusion about what to use. The scene is very fragmented, and detailed comparisons of different frameworks are still somewhat rare. Meantime, how to handle dependencies and structure projects are big topics in the Go community.

  • Sum X & Y, and print the result Input : 1, 2 Output : 3
  • Multiply X & Y, and print the result Input : 1, 2 Output : 2
  • Find first N prime number, and print the result Input : 4 Output : 2, 3, 5, 7
  • Find first N Fibonacci sequence, and print the result Input : 4 Output : 0, 1, 1, 2

Requirements

Usage

To try it out, use:

  % go run app/main.go
  or
  % make 
  % ./sample-code-server

Directories

Path Synopsis
app
fibo
sum

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL