일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- 자료구조와함께배우는알고리즘입문
- 네트워크 설정
- 서버설정
- 데비안
- d
- 페이징
- 친절한SQL튜닝
- resttemplate
- 자료구조와 함께 배우는 알고리즘 입문
- ㅒ
- 스프링부트핵심가이드
- 구멍가게코딩단
- 목록처리
- baeldung
- 자바편
- 알파회계
- Kernighan의 C언어 프로그래밍
- 선형대수
- GIT
- 리눅스
- /etc/network/interfaces
- iterator
- 코드로배우는스프링부트웹프로젝트
- network configuration
- 코드로배우는스프링웹프로젝트
- 스프링 시큐리티
- 이터레이터
- 티스토리 쿠키 삭제
- 처음 만나는 AI수학 with Python
- 처음 만나는 AI 수학 with Python
- Today
- Total
목록전체 글 (413)
bright jazz music
%JAVA_HOME%은 JAVA_HOME 시스템 변수를 의미한다. 이 자리에 JAVA_HOME 변수의 값으로 대체된다. JAVA_HOME 시스템 변수에는 JDK가 설치된 폴더의 위치가 지정되어 있다. %JAVA_HOME%\bin은 JDK 설치 폴더 아래 bin 폴더를 의미한다. bin은 컴파일러 등 개발 도구들이 위치하는 폴더로서, 이 폴더를 Path로 지정해 주면 어느 곳에서나 bin 폴더의 프로그램들을 직접 실행할 수 있다. 그것이 Path를 지정하는 이유이다. JDK의 어떤 버전을 설치해도 JAVA_HOME 으로 지정된 폴더의 하위 폴더는 동일하다 따라서 다른 JDK 버전으로 변경하여 개발하고 싶다면 JAVA_HOME 의 위치만 변경해주면 bin 폴더의 PATH는 그대로 같다. 참고로 Path를 지..
ㅇㄴpackage mainimport ( "fmt" "net/http")type requestResult struct { url string status string}func main() { results := make(map[string]string) c := make(chan requestResult) //채널로 requestResult 타입의 스트럭트를 주고 받을 것이다. urls := []string{ //urls라는 이름의 string 타입 배열 생성 "https://airbnb.com", "https://amazon.com", "https://reddit.com", "https://google.com", "https://soundcloud.com", "ht..
package mainimport ( "fmt" "time")func main() { c := make(chan string) people := [2]string{"hojun", "oceanus"} for _, person := range people { go isSexy(person, c) } fmt.Println("Waiting for message") resultOne := for loop 사용하기 package mainimport ( "fmt" "time")func main() { c := make(chan string) //채널을 통해 string 타입의 메시지를 주고 받을 것이다 people := [5]string{"hojun", "oceanus", "dal", "japang..
package mainimport ( "fmt" "time")// Goroutines 은 기본적으로 다른 함수와 동시에 실행시키는 함수이다.//고루틴은 메인함수가 종료되면 끝난다.func main() { go sexyCount("hojun") //go를 넣어줌으로써 고루틴을 만든다. 호준은 오케아노스와 동시처리된다. sexyCount("oceanus") //만약 sexyCount("oceanus")에도 go를 붙이면 프로그램은 종료된다. // 메인 함수가 작업을 마쳤기 때문이다. //고루틴은 프로그램이 작동하는 동안만 유효한 것이다. 즉, 메인함수가 작동하는 동안만 //이 경우 메인함수는 첫 번째 고루틴을 실행하고 두 번째 고루틴을 실행한다. //그러면 남아 있는 작업이 없기 때문에 끝이 나버린다..
package mainimport ( "errors" "fmt" "net/http")var errRequestFailed = errors.New("Request failed")var results = make(map[string]string)//func 안이 아니라서 results := map[string]string{} 형식을 쓸 수 없다// results 라는 이름의 맵 생성과 초기화// = var results = map[string]string{}//이런 방식으로 맵을 초기화하지 않으면 값이 nil이 돼 버린다.func main() { urls := []string{ //urls라는 이름의 string 타입 배열 생성 "https://airbnb.com", "https://amazon.com"..
package myDictimport "errors"// map은 struct가 아니다. array처럼 타입이다.// type에도 메소드를 추가할 수 있다. struc에만 추가할 수 있는 것이 아니다.// type 옆의 Dictionary는 map[string]string의 alias 같은 것임.//map은 자동으로 *를 사용한다.//Dictionary Typetype Dictionary map[string]stringvar ( errNotFound = errors.New("Not Found") errWordExists = errors.New("That word already exists") errCantUpdate = errors.New("Cant update non-existing word"))/..
package myDictimport "errors"// map은 struct가 아니다. array처럼 타입이다.// type에도 메소드를 추가할 수 있다. struc에만 추가할 수 있는 것이 아니다.// type 옆의 Dictionary는 map[string]string의 alias 같은 것임.//map은 자동으로 *를 사용한다.//Dictionary Typetype Dictionary map[string]stringvar errNotFound = errors.New("Not Found")var errWordExists = errors.New("That word already exists")// Search for a wordfunc (d Dictionary) Search(word string) (st..
package myDict// type에도 메소드를 추가할 수 있다. struc에만 추가할 수 있는 것이 아니다.// type 옆의 Dictionary는 map[string]string의 alias 같은 것임.//Dictionary Typetype Dictionary map[string]string메인package mainimport ( "fmt" "github.com/hojuncha997/learngo/accounts/myDict")func main() { dictionary := myDict.Dictionary{} dictionary["hello"] = "hello" dictionary["hello2"] = "hello2" fmt.Println(dictionary)}===map[hello:hello ..
package accountsimport ( "errors" "fmt")//Account structtype Account struct { owner string balance int}var errNoMoney = errors.New("Can't witdhraw") //에러의 변수명은 err로 시작해야 함//NewAccount creates Accountfunc NewAccount(owner string) *Account { account := Account{owner: owner, balance: 0} return &account //사본 말고 메모리 주소 반환}//Deposit x amount on your accountfunc (a *Account) Deposit(amount int) { //메..
어카운트package accountsimport "errors"//Account structtype Account struct { owner string balance int}var errNoMoney = errors.New("Can't witdhraw") //에러의 변수명은 err로 시작해야 함//NewAccount creates Accountfunc NewAccount(owner string) *Account { account := Account{owner: owner, balance: 0} return &account //사본 말고 메모리 주소 반환}//Deposit x amount on your accountfunc (a *Account) Deposit(amount int) { //메소드임. ..