<commit_before># ZeroDT [![Build Status](https://travis-ci.org/ssgreg/zerodt.svg?branch=master)](https://travis-ci.org/ssgreg/zerodt)

Package zerodt offers a zero downtime restart and a graceful shutdown for HTTP servers.

## Example

The simplest way to use ZeroDT is to pass your http.Server to the NewApp() function and call ListenAndServe() for a object it returns:

```go
package main

import (
    "io"
    "net/http"
    "time"

    "github.com/ssgreg/zerodt"
)

func hello(w http.ResponseWriter, r *http.Request) {
    io.WriteString(w, "Hello world!")
}<commit_msg>highlight keywords in readme<commit_after># ZeroDT [![Build Status](https://travis-ci.org/ssgreg/zerodt.svg?branch=master)](https://travis-ci.org/ssgreg/zerodt)

Package `ZeroDT` offers a zero downtime restart and a graceful shutdown for HTTP servers.

## Example

The simplest way to use `ZeroDT` is to pass your `http.Server` to the `zerodt.NewApp` function and call `zerodt.ListenAndServe` for a object it returns:

```go
package main

import (
    "io"
    "net/http"
    "time"

    "github.com/ssgreg/zerodt"
)

func hello(w http.ResponseWriter, r *http.Request) {
    io.WriteString(w, "Hello world!")
}
{'fraction_non_alphanumeric': 0.12658227848101267, 'fraction_numerical': 0.0, 'mean_word_length': 4.201754385964913, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5536643', 'n_tokens_mistral': 418, 'n_tokens_neox': 405, 'n_words': 119}