Commit 40a7db3e authored by Rob Pike's avatar Rob Pike

add top-level package comments for net, reflect, malloc.

reflect is a little more detailed than some because it affords an opportunity
to explain how to approach the library.

R=gri, rsc
CC=go-dev
http://go/go-review/1026026
parent 56b45157
......@@ -6,6 +6,9 @@
// The actual functions are written in C
// and part of the runtime library.
// The malloc package exposes statistics and other low-level details about
// the run-time memory allocator and collector. It is intended for debugging
// purposes only; other uses are discouraged.
package malloc
type Stats struct {
......
......@@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// The net package provides a portable interface to Unix
// networks sockets, including TCP/IP, UDP, domain name
// resolution, and Unix domain sockets.
package net
// TODO(rsc):
......
......@@ -2,6 +2,17 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// The reflect package implements run-time reflection, allowing a program to
// manipulate objects with arbitrary types. The typical use is to take a
// value with static type interface{} and extract its dynamic type
// information by calling Typeof(), which returns an object with interface
// type Type. That contains a pointer to a struct of type *StructType,
// *IntType, etc. representing the details of the underlying type. A type
// switch or type assertion can reveal which.
//
// A call to NewValue creates a Value representing the run-time data; it
// contains a *StructValue, *IntValue, etc. MakeZero takes a Type and
// returns a Value representing a zero value for that type.
package reflect
import (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment