Standard library / time
time.Nanosecond
One nanosecond equals 1 nanoseconds. Multiply an integer converted to Duration by this unit; check overflow for large inputs. Expected stdout: '1\n'.
Formal Syntax & Structure
go syntaxgo
const Nanosecond Duration = 1Working Example
Example Snippetgo
package main
import ( "fmt" "time")
func main() { fmt.Println(time.Nanosecond.Nanoseconds()) }