"Go 형용사 명사 생성기"의 두 판 사이의 차이

 
36번째 줄: 36번째 줄:
* [[형용사 명사 생성기]]
* [[형용사 명사 생성기]]


[[분류: Go 랜덤]]
[[분류: Go 랜덤 문자열]]
[[분류: 형용사 명사 생성기]]
[[분류: 형용사 명사 생성기]]

2025년 1월 31일 (금) 12:20 기준 최신판

1 개요[ | ]

Go 형용사 명사 생성기
Go
Copy
package main

import (
	"fmt"

	"github.com/castillobgr/sententia"
)

func main() {
	name, _ := sententia.Make("{{ adjective }}-{{ noun }}")
	fmt.Println(name) // uncooked-playroom
}
Loading
Go
Copy
package main

import (
	"fmt"

	"github.com/docker/docker/pkg/namesgenerator"
)

func main() {
	fmt.Println(namesgenerator.GetRandomName(0)) // interesting_pascal
	fmt.Println(namesgenerator.GetRandomName(1)) // eloquent_panini3
	fmt.Println(namesgenerator.GetRandomName(3)) // focused_mclaren8
	fmt.Println(namesgenerator.GetRandomName(5)) // frosty_lederberg4
}
Loading

2 같이 보기[ | ]