cuelang.org/go@v0.10.1/pkg/net/doc.go (about)

     1  // Copyright 2019 CUE Authors
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Package net provides net-related type definitions.
    16  //
    17  // The IP-related definitions can be represented as either a string or a list of
    18  // byte values. To allow one format over an other these types can be further
    19  // constraint using string or [...]. For instance,
    20  //
    21  //	// multicast defines a multicast IP address in string form.
    22  //	multicast: net.MulticastIP & string
    23  //
    24  //	// unicast defines a global unicast IP address in list form.
    25  //	unicast: net.GlobalUnicastIP & [...]
    26  package net