Gold codes are not really what you are looking for as far as I understand. With Gold codes you have many sequences and you want to control (i.e., have small absolute values) for all nontrivial auto and cross correlations in the set. That's overkill for you, and the Welch bound implies that you cannot obtain the $\lceil n/2 \rceil$ Hamming distance between shifts that you require.
You have one binary sequence, say $(x_0,\ldots,x_{n-1})$ and the usual definition of (cyclic) autocorrelation is $$ \theta_{x}(\tau)=\sum_{0\leq k \leq n-1} (-1)^{x_t + x_{t+\tau}} $$ where the shift in the index is taken modulo $n.$ There is a one to one correspondence between the Hamming distance between a sequence and its cyclic shift and this correlation.
Clearly if $n$ is odd then this correlation is in the best case equal to $-1$ for nontrivial shifts.
For $n=2^m-1,$ you can use maximum length sequences obtained from the Galois field trace function to get what you want. Let $$ x_k=\mathrm{tr}(c \alpha^k),\quad c\neq 0, $$ where $\mathrm{tr}:GF(2^m)\rightarrow GF(2)$ is the trace map and $\alpha$ is a primitive element (of multiplicative order $2^m-1$) in $GF(2^m).$
LetFor $n=p,$$n=p$, for some prime $p$ congruent to $3$ modulo 4. you can use the Legendre sequences to get the same correlation. Use the Legendre symbol as a multiplicative character which means map the quadratic residues in $GF(p)^\ast$ to $+1$ and the quadratic nonresidues to $-1$ with the zero element mapped to $+1$ as well.
Example: $N=7,$ the quadratic residues are $1,4,9\equiv 2\pmod 2,$ so you get the sequence $$ \begin{array}{c|rrrrrrr} k & 0 & 1 & 2& 3& 4 & 5& 6 \\ \hline x_k & +1 & +1 & +1 & -1 & +1 & -1& -1 \end{array} $$
Relevant keywords are m-sequences (maximum length sequences), Legendre sequences. For ranging applications m-sequences are used very widely in communications, Legendre sequences are used in the GPS system, as well as other places.
Finally, for $n=4,$ there is the circulant Hadamard sequence $(-1,+1,+1,+1)$ which gives perfect autocorrelation, but no longer examples are known and are believed not to exist.
Edit: For Barker codes and similar signal sets the relevant correlation is aperiodic correlation, given by $$ C_{x}(\tau)=\sum_{0\leq k \leq n-1-|\tau|} (-1)^{x_t + x_{t+\tau}},\quad |\tau|<n. $$