package datakit-github

  1. Overview
  2. Docs
type t = private {
  1. id : int;
  2. user : User.t;
  3. body : string;
}

The type for comments.

val v : id:int -> user:User.t -> body:string -> t

v ~id ~user ~body is a comment done by user saying body.

val id : t -> int

id t is t's ID, e.g. the appearance order in the comment list.

val user : t -> User.t

user t is t's user.

val body : t -> string

body t is t's body.

val pp : t Fmt.t

pp is the pretty-printer for comments.

OCaml

Innovation. Community. Security.