MCPcopy Index your code
hub / github.com/docker/go-units

github.com/docker/go-units @v0.5.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.5.0 ↗ · + Follow
42 symbols 97 edges 6 files 14 documented · 33% 345 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

GoDoc

Introduction

go-units is a library to transform human friendly measurements into machine friendly values.

Usage

See the docs in godoc for examples and documentation.

Copyright and license

Copyright © 2015 Docker, Inc.

go-units is licensed under the Apache License, Version 2.0. See LICENSE for the full text of the license.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

HumanDuration
called by 76
duration.go
HumanSize
called by 17
size.go
ParseUlimit
called by 17
ulimit.go
BytesSize
called by 15
size.go
RAMInBytes
called by 14
size.go
FromHumanSize
called by 12
size.go
getSizeAndUnit
called by 2
size.go
parseSize
called by 2
size.go

Shape

Function 35
Method 3
Struct 2
FuncType 1
TypeAlias 1

Languages

Go100%

Modules by API surface

size_test.go14 symbols
ulimit_test.go11 symbols
size.go9 symbols
ulimit.go5 symbols
duration_test.go2 symbols
duration.go1 symbols

For agents

$ claude mcp add go-units \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact