예제 #1
0
파일: linenoise.go 프로젝트: Abioy/ledisdb
func setHistoryCapacity(capacity int) error {
	res := C.linenoiseHistorySetMaxLen(C.int(capacity))
	if res != 1 {
		return errors.New("Could not set history max len.")
	}
	return nil
}
예제 #2
0
func HistorySetMaxLen(length int) {
	C.linenoiseHistorySetMaxLen(C.int(length))
	return
}