Go UUID 생성

Jmnote (토론 | 기여)님의 2024년 7월 3일 (수) 23:39 판
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

Go UUID 생성
package main

import (
	"fmt"

	"github.com/google/uuid"
)

func main() {
	newUUID := uuid.New().String()
	fmt.Println(newUUID)      // 27707c42-a1c5-4179-8c7e-effcd1a4b61c
	fmt.Println(len(newUUID)) // 36
}

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}