본문 바로가기 메뉴 바로가기

잼있는 블로그

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

잼있는 블로그

검색하기 폼
  • 분류 전체보기 (42)
    • CS (9)
    • Development (11)
    • Programming (3)
    • DevOps (5)
    • Essay (10)
    • Tutorial (4)
  • 방명록

no-op (1)
No Operation(no-op, nop, noop)

delete는 builtin 함수로 아래와 같이 나와 있는데 no-op가 궁금해서 찾아봤다. // The delete built-in function deletes the element with the specified key // (m[key]) from the map. If m is nil or there is no such element, delete // is a no-op. func delete(m map[Type]Type1, key Type) Unnecessary guard around call to delete 아래와 같이 map에 key가 있는지 채크하고 있으면 지우는 코드를 짰을 때 그렇게 할 필요 없다고 staticcheck에서 알려준다. sampleMaps := []map[string..

Programming 2022. 1. 11. 11:03
이전 1 다음
이전 다음
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 창업
  • Isolate level
  • http
  • no-op
  • HTTP/2
  • database
  • go
  • pytest
  • inflearn
  • 원티드
  • k8s
  • buildkit
  • Git
  • thetextbook
  • 덕타이핑
  • GitHub
  • user-agent
  • MSA
  • 프리온보딩
  • direnv
  • Network
  • cka
  • HTTP/3
  • Python
  • QUIC
  • web_server
  • Complier
  • 위코드
  • gitignore
  • docker-compose
more
«   2025/05   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바