Interface with abstract of methods

Defining an Interface Keyword : type, interface Interface_name user provide a descriptive name Within the { } curly bracket, method sets are a list of method_name has been defined method name with parameters, return. No implementation details. https://golang.org/pkg/os/#FileInfo the FileInfo interface has the following method sets: Name() string // return Read more…

Docker diff command

Inspect changes to files or directories on a container’s filesystem Usage List the changed files and directories in a container᾿s filesystem since the container was created. Three different types of change are tracked: Extended description Symbol Description A A file or directory was added D A file or directory was Read more…

Struct type

Struct types A struct is a sequence of named elements, called fields, each of which has a name and a type. Field names may be specified explicitly (IdentifierList) or implicitly (EmbeddedField). Within a struct, non-blank field names must be unique. StructType = “struct” “{” { FieldDecl “;” } “}” . FieldDecl = Read more…