Nomad Coin - Nomad Coin study

nomad_Coin

nomad_Coin study

노마드코인 스터디 Rough

상수 및 변수 **

상수선언 const name string = "nico" 변수선언 var name string = "nico" 변수선언 var name:= "nico"

함수

  • func 함수명(입력 파라미터) (전달 파라미터)

  • 형식 1

func func_01(name string) (int, string) { return len(name), strings.ToUpper(name) }

func func_02(name string) int { return len(name) }

func Fn_Afunc_03(name string) (length int, uppercase string) { length = len(name) uppercase = strings.ToUpper(name) return }

반복문

func for_01(numbers ...int) { for number := range numbers { fmt.Println(number) } }

func for_02(numbers ...int) { for index, number := range numbers { fmt.Println(index, number) } }

func for_03(numbers ...int) { for i := 0; i < len(numbers); i++ { fmt.Println(numbers[i]) } }

IF

func if_01() { age := 23 if age < 23 { fmt.Println(age) } }

func if_02() { if age2 := 23; age2 < 23 { fmt.Println("age21 ==========") fmt.Println(age2) } fmt.Println("age22")

// if 문 밖에서 변수 호출 불가능
fmt.Println(age2)

}

SWITCH

func swith_01() { age := 30 switch age {
case 10:
	println(10)
case 20:
	println(20)
case 30:
	println(30)
}

}

func swith_02() { age := 30 switch { case age == 10: println(10) case age == 20: println(20) case age == 30: println(30) } }

ARRAY

func array_01() { names := [5]string{"aaa", "bbb", "ccc"} fmt.Println(names) // [aaa bbb ccc ]
names[3] = "ddd"
names[4] = "eee"
// names[5] = "fff" : 오류 발생

}

func array_02() { names := []string{"aaa", "bbb", "ccc"} fmt.Println(names) // [aaa bbb ccc ]

// names[3] = "ddd"     : 오류 발생
// append(names, "ddd") : 오류 발생

names = append(names, "ddd")
fmt.Println(names)
// [aaa bbb ccc ddd]

}

POINTER

func pointer_01() { a := 2 b := 3
fmt.Println(a, b)
// 2 3

// 메모리 포인터 주소 출력
fmt.Println(&a, &b)
// 0xc000014098 0xc0000140b0

fmt.Println(a + b)

}

func pointer_02() { a := 2 b := &a

fmt.Println(a, b)
// 2 0xc0000140f0

// 메모리 포인터 주소 출력
fmt.Println(&a, &b)
// 0xc000014098 0xc0000140b0

}

func pointer_03() { a := 2 b := &a

fmt.Println(a, &a, b, &b)
// 2 0xc0000140f8 0xc0000140f8 0xc000006038

*b = 20

fmt.Println(a, &a, b, &b)
// 20 0xc0000140f8 0xc0000140f8 0xc000006038

// 메모리 값을 볼때는 *
fmt.Println(a, &a, *b, &b)
// 20 0xc0000140f8 20 0xc000006038

}

MAP

func map_01() { nico := map[string]string{"name": "nico", "age": "30"} fmt.Println(nico) }

STRUCTS

func struncts_01() { favFood := []string{"김치", "라면"} nico := person{"nico", 22, favFood} fmt.Println(nico) // {nico 22 [김치 라면]} }

func struncts_02() { favFood := []string{"김치", "라면"} nico := person{name: "nico", age: 22, favFood: favFood} fmt.Println(nico) // {nico 22 [김치 라면]} fmt.Println(nico.name) // nico }

Printf / Sprintf

Printf Sprintf : 콘솔에 출력하지 않고 string 을 return

HASH

B1 : b1Hash = (data + "") B2 : b2Hash = (data + b1Hash) B3 : b3Hash = (data + b2Hash)

Similar Resources

E-commerce-project - RESTFUL API for TakTuku an E-Commerce App created for the purpose of study

About The Project RESTFUL API for TakTuku an E-Commerce App created for the purp

Jul 23, 2022

Bcfm-study-case - A simple http server using the Echo library in Go language

Bcfm-study-case - A simple http server using the Echo library in Go language

Task 1 Hakkında Burada Go dilinde Echo kütüphanesini kullanarak basit bir http s

Feb 2, 2022

Target Case Study - Document Search

 Target Case Study - Document Search

Target Case Study - Document Search Goal The goal of this exercise is to create

Feb 7, 2022

Go language bindings for the COIN-OR Linear Programming library

clp Description The clp package provides a Go interface to the COIN-OR Linear Programming (CLP) library, part of the COIN-OR (COmputational INfrastruc

Nov 9, 2022

Simply realtime chia log analyzer for chia coin (XCH) farmers

Simply realtime chia log analyzer for chia coin (XCH) farmers

Chia log analyzer Simply realtime chia log analyzer Howto run on Linux Download binary from the releases assets (chia-log-analyzer.go-linux-amd64 ) Yo

Jul 30, 2022

A rest-api that works with golang as coin portfolio

Koinfolio A rest-api that works with golang as coin portfolio Technical Details Golang/Gin is used as application framework MongoDB is database Usage

Jun 1, 2022

"We will game" blockchain featuring the "Willgame coin".

We will game "We will game" blockchain featuring the "Willgame coin". Our vision is to become the number one design company for play to earn decentral

Jan 2, 2022

Nomad is an easy-to-use, flexible, and performant workload orchestrator that can deploy a mix of microservice, batch, containerized, and non-containerized applications

Nomad is an easy-to-use, flexible, and performant workload orchestrator that can deploy a mix of microservice, batch, containerized, and non-containerized applications

Nomad is an easy-to-use, flexible, and performant workload orchestrator that can deploy a mix of microservice, batch, containerized, and non-containerized applications. Nomad is easy to operate and scale and has native Consul and Vault integrations.

Jan 5, 2023

DigitalOcean Droplets target plugin for HashiCorp Nomad Autoscaler

Nomad DigitalOcean Droplets Autoscaler The do-droplets target plugin allows for the scaling of the Nomad cluster clients via creating and destroying D

Dec 8, 2022

A terminal UI (TUI) for HashiCorp Nomad

A terminal UI (TUI) for HashiCorp Nomad

Damon - A terminal Dashboard for HashiCorp Nomad Damon is a terminal user interface (TUI) for Nomad. It provides functionality to observe and interact

Jan 6, 2023

OpenAPI specification and related artifacts for HashiCorp Nomad

Overview This repository contains the HashiCorp Nomad OpenAPI specification and related artifacts. The OpenAPI specification defines a machine-readabl

Dec 14, 2022

A cron-like strategy plugin for HashiCorp Nomad Autoscaler

Nomad Autoscaler Cron Strategy A cron-like strategy plugin, where task groups are scaled based on a predefined scheduled. job "webapp" { ... group

Feb 14, 2022

Processing Nomad Events Stream

Processing Nomad Events Stream

Nomad Events Sink Nomad Events Sink is an events collection agent which uses Nomad Events SDK to fetch events. Events can help debug the cluster state

Dec 19, 2022

The Operator Pattern, in Nomad

Nomad Operator Example Repostiory to go along with my The Operator Pattern in Nomad blog post. Usage If you have tmux installed, you can run start.sh

May 12, 2022

Watch Nomad allocations and update logshipper config

Nomad Logger This is a simple Go application that polls the Nomad API for all al

Apr 9, 2022

Nomad plugin for reserving device mappings used by ebs devices.

Nomad Skeleton Device Plugin Skeleton project for Nomad device plugins. This project is intended for bootstrapping development of a new device plugin.

Jan 5, 2022

Hetzner-dns-updater - A simple tool to update a DNS record via Hetzner DNS API. Used for simple HA together with Nomad

hetzner-dns-updater A small utility tool to update a single record via Hetzner D

Feb 12, 2022

Khan - An interactive CLI management tool for Nomad

Khan An interactive CLI management tool for Hashicorp's Nomad Why Nomad has a gr

Apr 26, 2022
Target Case Study - Document Search
 Target Case Study - Document Search

Target Case Study - Document Search Goal The goal of this exercise is to create

Feb 7, 2022
Processing Nomad Events Stream
Processing Nomad Events Stream

Nomad Events Sink Nomad Events Sink is an events collection agent which uses Nomad Events SDK to fetch events. Events can help debug the cluster state

Dec 19, 2022
Myretail-target-case-study - Case study assessment for Target.com

myRetail This project contains two solutions to the Target myRetail case study. The prompt is copied over to PROMPT.md for convenience, but the TLDR i

Jan 1, 2022
Nomad Pack is a templating and packaging tool used with HashiCorp Nomad.

Nomad Pack is a templating and packaging tool used with HashiCorp Nomad.

Jan 4, 2023
Feb 12, 2022
CLRS study. Codes are written with golang.

algorithms CLRS study. Codes are written with golang. go version: 1.11 Heap BinaryHeap on array BinaryHeap on linkedlist LeftistHeap FibonacciHeap Tre

Dec 26, 2022
Study project that uses Apache Kafka as syncing mechanism between two databases, with producers and consumers written in Go.

Kafka DB Sync Study project that uses Apache Kafka as syncing mechanisms between a monolith DB and a microservice. The main purpose of this project is

Dec 5, 2021
A simple crawling study that obtained the new houses for sale in Wuhan, China

Crawling-Study This is a simple crawling study that obtained the new houses for sale in Wuhan, China. The used programming language was Go. As a begin

Nov 4, 2021
Study Project for the application of micro services and requisition controls

Starting Endpoint GO with Retry Request Install GoLang for Linux Tutorial: LINK

Jul 4, 2022
🐨 Go lang Study Repository.

go ?? Go lang Study Repository. 01 - Hello World Hello world in GO! What have learned? Create a module using the go init command. Declare a package. I

Feb 15, 2022