The fundamental idea of the Gauss law is the connection between charge density $\rho$ and the electric field $E$: the charge content is always specified by the electric field at its boundary. This is the heart of the Gauss law and holds in any dimension. Actually current experiments, called quantum simulators, try to implement the quantum version of electrodynamics (QED) in low dimensions, because higher dimensions are too complicated for now.
The integral and differential versions of the Gauss law in different dimensions are connected by the divergence theorem, a special case of Stoke's theorem. In two dimensions it also has the name Green's theorem. Removing one dimension from the differential form of Gauss's law is $\partial_x E_x + \partial_y E_y = \rho/\epsilon_0$ or
$$\int_{\partial A} \vec E \mathrm\, d \vec l = Q = \int_A \frac{\rho(x)}{\epsilon_0}\, \mathrm d A.$$
for an area $A$ (and you have to take care of unpacking the line element correctly: $\mathrm d \vec l = \vec n \mathrm d l$, where $\vec n$ is an outward-pointing unit normal vector and not pointing not along the line).
In one dimension, Stoke's theorem / the divergence theorem boils down to just the fundamental theorem of calculus and the Gauss law is really just $\partial_x E = \rho(x)/\epsilon_0$ or
$$E(x_2) - E(x_1) = \frac{Q}{\epsilon_0} = \int_{x_1}^{x_2} \frac{\rho(x)}{\epsilon_0} \mathrm d x.$$
Note that the Gauss law is only part of Maxwell's equations. Other parts don't generalize like this. For example there is no concept of magnetic fields in one dimension, because there can't be anything orthogonal.